From 29b49f4a328ac3de4b38855c7cd159d3be73c3fa Mon Sep 17 00:00:00 2001 From: Sanj Date: Wed, 31 Aug 2011 19:44:03 +0530 Subject: [PATCH] ups, table shows up at wrong time :/ --- gazetteer/static/js/gazetteer.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/gazetteer/static/js/gazetteer.js b/gazetteer/static/js/gazetteer.js index 7831b8e..d194894 100644 --- a/gazetteer/static/js/gazetteer.js +++ b/gazetteer/static/js/gazetteer.js @@ -14,9 +14,6 @@ $(function() { $('#searchForm').submit(function(e) { - if ($('.mapListSection').css("opacity") == '0') { - $('.mapListSection').animate({'opacity': '1'}, 500); - } e.preventDefault(); var bbox = map.getExtent().toBBOX(); var search_term = $('#searchField').val(); @@ -31,7 +28,9 @@ $(function() { 'threshold': 0.5, 'count': 20 }, function(features) { - + if ($('.mapListSection').css("opacity") == '0') { + $('.mapListSection').animate({'opacity': '1'}, 1000); + } if (features.hasOwnProperty("error") && features.error != '') { alert(features.error); return;