aboutsummaryrefslogtreecommitdiffstats
path: root/web/js.js
diff options
context:
space:
mode:
authorlouise <louise>2009-09-28 10:13:50 +0000
committerlouise <louise>2009-09-28 10:13:50 +0000
commit55a5cfb0586e00cc7fa5095bbc403f3f5b25684b (patch)
tree4eac8df65988e2ed3ab2083d172d21d15effc0e2 /web/js.js
parent1edb9534c35d19a8e183eeb85e3b77178085f370 (diff)
Allow extra params in ajax request
Diffstat (limited to 'web/js.js')
-rw-r--r--web/js.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/web/js.js b/web/js.js
index b3d61bdcc..b884fb2a7 100644
--- a/web/js.js
+++ b/web/js.js
@@ -311,6 +311,12 @@ function load_pins(x, y) {
'x=' + (x+2),
'y=' + (y+2),
'all_pins=' + document.getElementById('all_pins').value ];
+
+ if (document.getElementById('extra_param)) {
+ ajax_params.push('extra_param_name=' + document.getElementById('extra_param').name);
+ ajax_params.push('extra_param_value=' + document.getElementById('extra_param').value);
+ }
+
var separator;
if (window.Cobrand){
separator = window.Cobrand.param_separator();