aboutsummaryrefslogtreecommitdiffstats
path: root/web/js.js
diff options
context:
space:
mode:
authorlouise <louise>2009-12-01 17:54:29 +0000
committerlouise <louise>2009-12-01 17:54:29 +0000
commitc5b3041e1fe47bdff28a5828931b0cb81f20d8fd (patch)
treeff18306d2ee3845d137baa086d15ebed9445a6f9 /web/js.js
parentdc7f440891c01d420e37ddc67a6b51b92ea08c41 (diff)
Fix - all pins element not available on problem page
Diffstat (limited to 'web/js.js')
-rw-r--r--web/js.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/web/js.js b/web/js.js
index 9cc536728..ba4af8ec2 100644
--- a/web/js.js
+++ b/web/js.js
@@ -305,11 +305,15 @@ function update_tiles(dx, dy, force) {
function load_pins(x, y) {
if (document.getElementById('formX')) {
+ all_pins = '';
+ if (document.getElementById('all_pins')) {
+ all_pins = document.getElementById('all_pins').value;
+ }
var ajax_params = [ 'sx=' + document.getElementById('formX').value,
'sy=' + document.getElementById('formY').value,
'x=' + (x+2),
'y=' + (y+2),
- 'all_pins=' + document.getElementById('all_pins').value ];
+ 'all_pins=' + all_pins ];
if (document.getElementById('extra_param')) {
ajax_params.push(document.getElementById('extra_param').name + '=' + document.getElementById('extra_param').value);