summaryrefslogtreecommitdiff
path: root/map.js
diff options
context:
space:
mode:
authorComment <tim@gray.(none)>2013-05-20 22:19:37 +0100
committerComment <tim@gray.(none)>2013-05-20 22:19:37 +0100
commit73c5d1fbc23047f628da95a724aa6b61af3b44d5 (patch)
tree2380ddb161da6be0c8406cb9e3c1245992c91212 /map.js
parentce58f84fda93e6089caa5b724110dc7e01feddd1 (diff)
tidying up
Diffstat (limited to 'map.js')
-rwxr-xr-xmap.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/map.js b/map.js
index 169a0ee..1300e00 100755
--- a/map.js
+++ b/map.js
@@ -610,7 +610,7 @@ function shadowbox(n) {
Shadowbox.open({content:"./photos/"+n+".jpg",player: "img",title:markers['Building'][n].name});
}
function onsearch(query) {
- if (/^\d/.test(query)) {
+ if (/^[0-9]+$/.test(query)) { //^\d
show_building(query);
}
else