mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-26 12:51:52 +02:00
No longer need to send ajax=true at the end of url
This commit is contained in:
parent
c0e347c155
commit
a8c136f1cc
@ -331,10 +331,6 @@ egw.extend('links', egw.MODULE_GLOBAL, function()
|
|||||||
// if there are vars, we add them urlencoded to the url
|
// if there are vars, we add them urlencoded to the url
|
||||||
var query = [];
|
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)
|
for(var name in vars)
|
||||||
{
|
{
|
||||||
var val = vars[name] || ''; // fix error for eg. null, which is an object!
|
var val = vars[name] || ''; // fix error for eg. null, which is an object!
|
||||||
@ -351,11 +347,6 @@ egw.extend('links', egw.MODULE_GLOBAL, function()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Add ajax flag at the end
|
|
||||||
if(ajax)
|
|
||||||
{
|
|
||||||
query.push('ajax='+encodeURIComponent(ajax));
|
|
||||||
}
|
|
||||||
return query.length ? _url+'?'+query.join('&') : _url;
|
return query.length ? _url+'?'+query.join('&') : _url;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user