aboutsummaryrefslogtreecommitdiffstats
path: root/web/js.js
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@fury.ukcod.org.uk>2011-02-24 14:01:49 +0000
committerMatthew Somerville <matthew@fury.ukcod.org.uk>2011-02-24 14:01:49 +0000
commit13098b6381416919b3e36fc3f558ca50f58fa854 (patch)
tree581dfabca1440b24aec90d01addb4ba1d95aa050 /web/js.js
parentb54248ad8055afaf33fed2f7e51f88c6833047b2 (diff)
No need for all pins yet (does nothing <6 months), hide pins using OL JS if present; permalink.
Diffstat (limited to 'web/js.js')
-rw-r--r--web/js.js8
1 files changed, 6 insertions, 2 deletions
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();