silly fix

This commit is contained in:
sanj 2010-11-05 02:17:16 +05:30
parent 7ebab72ff2
commit 60bcd54c60

View File

@ -79,9 +79,9 @@ function onFeatureSelect(f) {
// $('img').removeClass('mapSelect');
var $img = $('[data-id=' + id + ']');
//ugly if statement.
//FIXME: ugly if statement - either make it an option to highlight or not somewhere else, or make the code generic to highlight text as well - current way is plain wrong.
if ($img.hasClass('textWrapper')) {
return;
return true;
}
var offset = $img.find('img').offset();
var height = $img.find('img').height();