mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-09-08 10:59:03 +00:00
update trigger can handle arrays passed as parameter
This commit is contained in:
parent
245a103b35
commit
aead80ee5c
|
@ -446,12 +446,18 @@ $(document).ready( function() {
|
||||||
for(var key in param1) {
|
for(var key in param1) {
|
||||||
if(key == 'callback')
|
if(key == 'callback')
|
||||||
callback = param1[key];
|
callback = param1[key];
|
||||||
else
|
else {
|
||||||
url += "&"+key+"="+param1[key];
|
if($.isArray(param1[key])) {
|
||||||
|
if(param1[key].length > 0)
|
||||||
|
url += "&"+key+"[]="+param1[key].join("&"+key+"[]=");
|
||||||
|
} else
|
||||||
|
url += "&"+key+"="+param1[key];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
url += "&"+param1;
|
url += "&"+param1;
|
||||||
}
|
}
|
||||||
|
console.log(url);
|
||||||
if(!element.data('no-spinner'))
|
if(!element.data('no-spinner'))
|
||||||
element.prepend('<div style="position: absolute; overflow: hidden; background: #f7f7f7; z-index: 1000; height: '+element.height()+'px; width: '+element.width()+'px; opacity: 0.7; display: table;"><div style="display: table-cell;text-align: center; vertical-align: middle; "><img src="../views/bootstrap/images/ajax-loader.gif"></div>');
|
element.prepend('<div style="position: absolute; overflow: hidden; background: #f7f7f7; z-index: 1000; height: '+element.height()+'px; width: '+element.width()+'px; opacity: 0.7; display: table;"><div style="display: table-cell;text-align: center; vertical-align: middle; "><img src="../views/bootstrap/images/ajax-loader.gif"></div>');
|
||||||
$.get(url, function(data) {
|
$.get(url, function(data) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user