diff options
author | louise <louise> | 2009-09-28 10:13:50 +0000 |
---|---|---|
committer | louise <louise> | 2009-09-28 10:13:50 +0000 |
commit | 55a5cfb0586e00cc7fa5095bbc403f3f5b25684b (patch) | |
tree | 4eac8df65988e2ed3ab2083d172d21d15effc0e2 /web/js.js | |
parent | 1edb9534c35d19a8e183eeb85e3b77178085f370 (diff) |
Allow extra params in ajax request
Diffstat (limited to 'web/js.js')
-rw-r--r-- | web/js.js | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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(); |