mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-26 01:43:47 +01:00
need to split off domain first, as it could contain app-name part of template eg. stylite.report.xet and https://my.stylite.de/egw/...
This commit is contained in:
parent
5d36da8062
commit
69ae4efb47
@ -324,7 +324,17 @@ etemplate2.prototype.load = function(_name, _url, _data, _callback)
|
||||
{
|
||||
this.name = _name; // store top-level template name to have it available in widgets
|
||||
// store template base url, in case initial template is loaded via webdav, to use that for further loads too
|
||||
this.template_base_url = _url.split(_name.split('.').shift())[0];
|
||||
// need to split off domain first, as it could contain app-name part of template eg. stylite.report.xet and https://my.stylite.de/egw/...
|
||||
if (_url[0] != '/')
|
||||
{
|
||||
this.template_base_url = _url.match(/https?:\/\/[^/]+/).shift();
|
||||
_url = _url.split(this.template_base_url)[1];
|
||||
}
|
||||
else
|
||||
{
|
||||
this.template_base_url = '';
|
||||
}
|
||||
this.template_base_url += _url.split(_name.split('.').shift())[0];
|
||||
|
||||
egw().debug("info", "Loaded data", _data);
|
||||
var currentapp = this.app = _data.currentapp || window.egw_appName;
|
||||
|
Loading…
Reference in New Issue
Block a user