silly fix
This commit is contained in:
parent
7ebab72ff2
commit
60bcd54c60
|
@ -79,9 +79,9 @@ function onFeatureSelect(f) {
|
||||||
// $('img').removeClass('mapSelect');
|
// $('img').removeClass('mapSelect');
|
||||||
var $img = $('[data-id=' + id + ']');
|
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')) {
|
if ($img.hasClass('textWrapper')) {
|
||||||
return;
|
return true;
|
||||||
}
|
}
|
||||||
var offset = $img.find('img').offset();
|
var offset = $img.find('img').offset();
|
||||||
var height = $img.find('img').height();
|
var height = $img.find('img').height();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user