fix sub-template of modified etemplate (WebDAV Url) wont work, as cache-buster / timestamp got added without download prefix, causing WebDAV to not find sub-template, because it treats everything but "?download" as part of URL

This commit is contained in:
Ralf Becker 2015-03-24 10:52:43 +00:00
parent 579b202001
commit 6f2a7ca40c

View File

@ -105,7 +105,7 @@ var et2_template = et2_DOMWidget.extend(
var splitted = template_name.split('.'); var splitted = template_name.split('.');
// use template base url from initial template, to continue using webdav, if that was loaded via webdav // use template base url from initial template, to continue using webdav, if that was loaded via webdav
var path = this.getRoot()._inst.template_base_url + splitted.shift() + "/templates/default/" + var path = this.getRoot()._inst.template_base_url + splitted.shift() + "/templates/default/" +
splitted.join('.')+ ".xet" + (cache_buster ? '?'+cache_buster : splitted.join('.')+ ".xet" + (cache_buster ? '?download='+cache_buster :
// if server did not give a cache-buster, fall back to current time // if server did not give a cache-buster, fall back to current time
'?download='+(new Date).valueOf()); '?download='+(new Date).valueOf());