aboutsummaryrefslogtreecommitdiffstats
path: root/web/js.js
diff options
context:
space:
mode:
authormatthew <matthew>2008-05-06 10:01:23 +0000
committermatthew <matthew>2008-05-06 10:01:23 +0000
commit69c5632cea68018605c5170bc73e8717b3d87be6 (patch)
tree7e4c8503c3146a615ad49513a063c19763fb6234 /web/js.js
parentff4bca195d17f827c64515b4afbf8514455fb52b (diff)
Various i18n changes; watermark; smaller map possibility.
Diffstat (limited to 'web/js.js')
-rw-r--r--web/js.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/web/js.js b/web/js.js
index 25a9b6770..2a52ab423 100644
--- a/web/js.js
+++ b/web/js.js
@@ -26,7 +26,8 @@ function compass_pan(e, a) {
YAHOO.util.Event.onContentReady('compass', function() {
var ua=navigator.userAgent.toLowerCase();
- if (document.getElementById('mapForm') && /safari/.test(ua)) return;
+ if (document.getElementById('mapForm') && (/safari/.test(ua) || /Konqueror/.test(ua))) return;
+ if (document.getElementById('map').offsetWidth > 510) return;
var points = this.getElementsByTagName('a');
YAHOO.util.Event.addListener(points[1], 'click', compass_pan, { x:0, y:tileheight });
@@ -43,6 +44,7 @@ YAHOO.util.Event.onContentReady('compass', function() {
YAHOO.util.Event.onContentReady('map', function() {
var ua=navigator.userAgent.toLowerCase();
if (document.getElementById('mapForm') && (/safari/.test(ua) || /Konqueror/.test(ua))) return;
+ if (document.getElementById('map').offsetWidth > 510) return;
new YAHOO.util.DDMap('map');
update_tiles(start_x, start_y, true);