aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--web/js.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/web/js.js b/web/js.js
index 0cffd6ed4..860da3323 100644
--- a/web/js.js
+++ b/web/js.js
@@ -15,6 +15,9 @@ function compass_pan(e, a) {
}
YAHOO.util.Event.onContentReady('compass', function() {
+ var ua=navigator.userAgent.toLowerCase();
+ if (document.getElementById('mapForm') && /safari/.test(ua)) return;
+
var points = this.getElementsByTagName('a');
YAHOO.util.Event.addListener(points[1], 'click', compass_pan, { x:0, y:tileheight });
YAHOO.util.Event.addListener(points[3], 'click', compass_pan, { x:tilewidth, y:0 });
@@ -27,6 +30,9 @@ YAHOO.util.Event.onContentReady('compass', function() {
});
YAHOO.util.Event.onContentReady('map', function() {
+ var ua=navigator.userAgent.toLowerCase();
+ if (document.getElementById('mapForm') && /safari/.test(ua)) return;
+
new YAHOO.util.DDMap('map');
update_tiles(0, 0, true);
});