From 7ebab72ff2f7024474a9573ed39706eb951f6572 Mon Sep 17 00:00:00 2001 From: sanj Date: Fri, 5 Nov 2010 02:07:26 +0530 Subject: [PATCH] attempt at fixing silliness with texts trying to highlight themselves --- vurbanism/static/js/vurbanism.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/vurbanism/static/js/vurbanism.js b/vurbanism/static/js/vurbanism.js index a0732c1..4aa455d 100644 --- a/vurbanism/static/js/vurbanism.js +++ b/vurbanism/static/js/vurbanism.js @@ -78,6 +78,11 @@ function onFeatureSelect(f) { $('.highlightOverlay').hide().remove(); // $('img').removeClass('mapSelect'); var $img = $('[data-id=' + id + ']'); + + //ugly if statement. + if ($img.hasClass('textWrapper')) { + return; + } var offset = $img.find('img').offset(); var height = $img.find('img').height(); var width = $img.find('img').width();