summaryrefslogtreecommitdiff
path: root/map.js
diff options
context:
space:
mode:
authorComment <tim@gray.(none)>2013-08-04 21:40:34 +0100
committerComment <tim@gray.(none)>2013-08-04 21:40:34 +0100
commit95792250582b53d129ffaeec44765b2a16b1f9cc (patch)
treeabb15f71ce03f599f68916299289481e770eceb3 /map.js
parent73c5d1fbc23047f628da95a724aa6b61af3b44d5 (diff)
added ?b=x queryHEADmaster
Diffstat (limited to 'map.js')
-rwxr-xr-xmap.js12
1 files changed, 10 insertions, 2 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+="<div id='map_building_permalink'>";
var linkname;
linkname=this.name;
- popup+="<a href='map.php?q="+this.id+"' >Permalink</a>"; //urlencode(linkname)
+ popup+="<a href='map.php?b="+this.id+"' >Permalink</a>"; //urlencode(linkname)
lat=this.getPosition().lat();
lng=this.getPosition().lng();