mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-28 17:48:56 +01:00
If the current application does not own the template, load the javascript for the current application and the application owning the template. (Gets actions working reliably in home)
This commit is contained in:
parent
4d300a58e0
commit
f3c3fedf32
@ -329,6 +329,12 @@ etemplate2.prototype.load = function(_name, _url, _data, _callback)
|
||||
{
|
||||
egw.debug("warn", "Did not load '%s' JS object",appname);
|
||||
}
|
||||
// If etemplate current app does not match app owning the template,
|
||||
// initialize the current app too
|
||||
if (typeof app[this.app] !== 'object' && typeof app.classes[this.app] == 'function')
|
||||
{
|
||||
app[this.app] = new app.classes[this.app]();
|
||||
}
|
||||
if(typeof app[appname] == "object")
|
||||
{
|
||||
app_callback = function(_et2, _name) {
|
||||
|
Loading…
Reference in New Issue
Block a user