From 13098b6381416919b3e36fc3f558ca50f58fa854 Mon Sep 17 00:00:00 2001 From: Matthew Somerville Date: Thu, 24 Feb 2011 14:01:49 +0000 Subject: No need for all pins yet (does nothing <6 months), hide pins using OL JS if present; permalink. --- web/js.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'web/js.js') diff --git a/web/js.js b/web/js.js index b2012fc84..07bede2d7 100644 --- a/web/js.js +++ b/web/js.js @@ -16,8 +16,12 @@ YAHOO.util.Event.onContentReady('mapForm', function() { this.onsubmit = function() { return false; }; } - this.x.value = fixmystreet.x + 3; - this.y.value = fixmystreet.y + 3; + /* XXX Should be in Tilma code only */ + if (this.x) { + this.x.value = fixmystreet.x + 3; + this.y.value = fixmystreet.y + 3; + } + /* if (swfu && swfu.getStats().files_queued > 0) { swfu.startUpload(); -- cgit v1.2.3