mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-26 01:43:47 +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;
|
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
|
* Returns the current egw application
|
||||||
* @param string _name is only used for fallback, if an onlder version of jdots is used.
|
* @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
|
else
|
||||||
{
|
{
|
||||||
egw_appWindow(app).location = url;
|
egw_appWindowOpen(app, url);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user