summaryrefslogtreecommitdiff
path: root/maps-extra.js
diff options
context:
space:
mode:
authorComment <tim@gray.(none)>2013-05-20 21:43:30 +0100
committerComment <tim@gray.(none)>2013-05-20 21:43:30 +0100
commitce58f84fda93e6089caa5b724110dc7e01feddd1 (patch)
tree5a51419580b33adf219ce6d0073ab9ab390f74b3 /maps-extra.js
parent4f81e9399051cc90ccddeb69b785d7422a28a1ff (diff)
tidying up
Diffstat (limited to 'maps-extra.js')
-rwxr-xr-xmaps-extra.js6
1 files changed, 3 insertions, 3 deletions
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+"'");