From ce58f84fda93e6089caa5b724110dc7e01feddd1 Mon Sep 17 00:00:00 2001 From: Comment Date: Mon, 20 May 2013 21:43:30 +0100 Subject: tidying up --- maps-extra.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'maps-extra.js') diff --git a/maps-extra.js b/maps-extra.js index e6cc7e1..a2b1f2c 100755 --- a/maps-extra.js +++ b/maps-extra.js @@ -37,10 +37,10 @@ $(document).ready(function() { }); // Set the action when the search box form is submitted. if ($('#headerform')) { - $('#headerform').submit(function() { + $('#headerform').bind('submit', function() { var el = document.getElementById('query'); onsearch(el.value); - return submit_the_query_form; + return false; }); }; // Set the default height for the map. @@ -156,7 +156,7 @@ function resize_map_and_results() { $('#searchresults').css('height', diff + 2 + 'px'); // The 2 is a bit random but adjusts the bottom of the results to match the map. } - map.setCenter(STARTPOS, 17); + //map.setCenter(STARTPOS, 17); } function MM_jumpMenu(targ,selObj,restore){ //v3.0 eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'"); -- cgit v1.2.3