From 95792250582b53d129ffaeec44765b2a16b1f9cc Mon Sep 17 00:00:00 2001 From: Comment Date: Sun, 4 Aug 2013 21:40:34 +0100 Subject: added ?b=x query --- map.js | 12 ++++++++++-- map_prepare.php | 1 + maps-extra.js | 8 +------- 3 files changed, 12 insertions(+), 9 deletions(-) diff --git a/map.js b/map.js index 1300e00..9aa2ab2 100755 --- a/map.js +++ b/map.js @@ -204,7 +204,15 @@ function loadMarkers(m) { //---------build customised markers from a database ta prepareData(); do_menuchoices(); //console.log("search:"+search_posted); - if (search_posted!="") onsearch(search_posted); + // Check if the POST search variables (query/building) was passed to Javascript. + if (building_posted != ''&&parseInt(building_posted)>0) + { + show_building(parseInt(building_posted)); + } + else if (search_posted != '') + { + onsearch(search_posted); + } } }); }); @@ -394,7 +402,7 @@ function getPlacesTab() { popup+="