mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-08-07 14:36:08 +02: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:
@ -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) {
|
||||
|
Reference in New Issue
Block a user