diff options
Diffstat (limited to 'web/js.js')
-rw-r--r-- | web/js.js | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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); }); |