mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-09 01:24:07 +01:00
Make sure ajax flag is at the end so framework finds it
This commit is contained in:
parent
52dbc208a6
commit
0502f9326c
@ -307,6 +307,11 @@ egw.extend('links', egw.MODULE_GLOBAL, function() {
|
||||
|
||||
// if there are vars, we add them urlencoded to the url
|
||||
var query = [];
|
||||
|
||||
// If ajax flag is there, it must be the last one
|
||||
var ajax = vars.ajax || false;
|
||||
delete vars.ajax;
|
||||
|
||||
for(var name in vars)
|
||||
{
|
||||
var val = vars[name];
|
||||
@ -322,6 +327,12 @@ egw.extend('links', egw.MODULE_GLOBAL, function() {
|
||||
query.push(name+'='+encodeURIComponent(val));
|
||||
}
|
||||
}
|
||||
|
||||
// Add ajax flag at the end
|
||||
if(ajax)
|
||||
{
|
||||
query.push('ajax='+encodeURIComponent(ajax));
|
||||
}
|
||||
return query.length ? _url+'?'+query.join('&') : _url;
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user