mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-25 17:33:49 +01:00
new method egw_appWindowOpen(app,url)
This commit is contained in:
parent
47e2764da0
commit
423a1d9303
@ -165,6 +165,19 @@ function egw_appWindow(_app)
|
||||
return window;
|
||||
}
|
||||
|
||||
/**
|
||||
* Open _url in window of _app
|
||||
* @param _app
|
||||
* @param _url
|
||||
*/
|
||||
function egw_appWindowOpen(_app, _url)
|
||||
{
|
||||
if (typeof _url == "undefined") {
|
||||
_url = "about:blank";
|
||||
}
|
||||
window.location = _url;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the current egw application
|
||||
* @param string _name is only used for fallback, if an onlder version of jdots is used.
|
||||
@ -288,7 +301,7 @@ function egw_open(id, app, type, extra, target)
|
||||
}
|
||||
else
|
||||
{
|
||||
egw_appWindow(app).location = url;
|
||||
egw_appWindowOpen(app, url);
|
||||
}
|
||||
}
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user