make etemplate2 global, as we need it to check an app uses it and then call methods on it, fixes #60374

This commit is contained in:
Ralf Becker 2021-07-06 15:59:51 +02:00
parent 81bc236045
commit 5505c9a314

View File

@ -1442,6 +1442,10 @@ export class etemplate2
throw 'Invalid parameters';
}
}
// make etemplate2 global, as we need it to check an app uses it and then call methods on it
window['etemplate2'] = etemplate2;
// Calls etemplate2_handle_response in the context of the object which
// requested the response from the server
egw(window).registerJSONPlugin(etemplate2.handle_load, null, 'et2_load');