summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xconfig.php2
-rwxr-xr-xmap.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/config.php b/config.php
index bf27e46..dba558b 100755
--- a/config.php
+++ b/config.php
@@ -5,7 +5,6 @@ $login="tcdmaps";
$pword="tcdmaps";
$db="googlemaps_db";
-
/*
$host="wwwdb.tcd.ie";
$login="gmaps";
@@ -13,6 +12,7 @@ $pword="xpehtWpR";
$db="googlemaps_db";
+
$host="internal-db.s65888.gridserver.com";
$login="db65888_tcd";
$pword="3K4DumV3";
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