debugging select hover control

This commit is contained in:
Sanj 2012-02-21 15:33:32 +05:30
parent c918ef2cfc
commit 7c4f092c7b

View File

@ -169,12 +169,14 @@ var API_BASE = "/1.0/",
function onFeatureSelect(feature) { function onFeatureSelect(feature) {
var slug = feature.attributes.slug; var slug = feature.attributes.slug;
alert("selected " + slug);
var matchedStops = $('.' + slug); var matchedStops = $('.' + slug);
matchedStops.addClass('highlightedStop'); matchedStops.addClass('highlightedStop');
} }
function onFeatureUnselect(feature) { function onFeatureUnselect(feature) {
var slug = feature.attributes.slug; var slug = feature.attributes.slug;
alert("unselected " + slug);
var matchedStops = $('.' + slug); var matchedStops = $('.' + slug);
matchedStops.removeClass('highlightedStop'); matchedStops.removeClass('highlightedStop');
} }