Use global template store directly, solves an error with loading sub-templates if they're not in the tree

This commit is contained in:
Nathan Gray 2014-09-25 18:29:18 +00:00
parent 3093cb6b85
commit 5896c7e103

View File

@ -88,7 +88,7 @@ var et2_template = et2_DOMWidget.extend(
// Check to see if XML is known
var xml = null;
var templates = this.getRoot().getInstanceManager().templates;
var templates = etemplate2.prototype.templates || this.getRoot().getInstanceManager().templates;
if(!(xml = templates[template_name]))
{
// Check to see if ID is short form --> prepend parent/top-level name