new method egw_appWindowOpen(app,url)

This commit is contained in:
Ralf Becker 2011-06-02 12:37:49 +00:00
parent 47e2764da0
commit 423a1d9303

View File

@ -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