Don't try to load disabled templates

Allows us to disable / not load templates even if they have template / ID
This commit is contained in:
nathan 2023-03-30 10:49:56 -06:00
parent 3740586d07
commit e1690a1dc1

View File

@ -105,7 +105,7 @@ export class et2_template extends et2_DOMWidget
this.options = et2_cloneObject(_attrs);
_attrs = {};
}
if(this.id != "" || this.options.template)
if((this.id != "" || this.options.template) && !this.options.disabled)
{
var parts = (this.options.template || this.id).split('?');
var cache_buster = parts.length > 1 ? parts.pop() : null;