aboutsummaryrefslogtreecommitdiffstats
path: root/web/js.js
diff options
context:
space:
mode:
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);