mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 09:05:16 +01:00
Handle re-loading an app with the URL query parameters so it actually gets reloaded, since its internal state may have changed since the initial load
This commit is contained in:
parent
b3be458ad6
commit
6d24ba6e29
@ -170,6 +170,14 @@ var fw_base = (function(){ "use strict"; return Class.extend(
|
||||
{
|
||||
_url = _app.indexUrl;
|
||||
}
|
||||
// If there are query parameters and URL is the same, don't just refresh
|
||||
// because the app's state may have changed since last time
|
||||
else if (_app.browser != null && _url == _app.browser.currentLocation
|
||||
&& !_url.match(/menuaction=[^&]+&ajax=true/))
|
||||
{
|
||||
// Reset current so new url loads fully
|
||||
_app.browser.currentLocation = _app.indexUrl;
|
||||
}
|
||||
else if (_app.browser != null &&
|
||||
// check if app has its own linkHandler
|
||||
!(this.applications[_app.appName].app_refresh) &&
|
||||
|
Loading…
Reference in New Issue
Block a user