actually fix double selection bug

This commit is contained in:
Sanj 2012-02-28 17:52:02 +05:30
parent b36a8f6e76
commit e345ea7a63

View File

@ -321,13 +321,13 @@ var API_BASE = "/1.0/",
// console.log(e.feature);
var slug = e.feature.attributes.slug;
//alert("selected " + slug);
$('.selectedStop').removeClass("selectedStop");
highlightStop(slug);
var stop = e.feature.attributes;
var geom = {
'coordinates': [e.feature.geometry.x, e.feature.geometry.y]
};
var $form = getStopForm(stop, geom);
$('.selectedStopItem').removeClass("selectedStopItem");
$('#stopForm').remove();
$('#formCol').empty();
$('#formCol').append($form);