From: Alan Knowles Date: Fri, 6 Apr 2012 15:19:08 +0000 (+0800) Subject: Roo/Template.js X-Git-Url: http://git.roojs.org/?p=roojs1;a=commitdiff_plain;h=7fc2a1506ab155fb198b0920ef893fa7eca3c629 Roo/Template.js --- diff --git a/Roo/Template.js b/Roo/Template.js index cd230b2fd3..8e28fd80b9 100644 --- a/Roo/Template.js +++ b/Roo/Template.js @@ -98,6 +98,23 @@ Roo.Template.prototype = { }, + loading : false, + + load : function (url, success) + { + if (this.loading) { + return false; + } + var cx = new Roo.data.Connection({ + url : url, + method : 'GET', + success : success, + failure : function() { + Roo.log("Template failed to load from " + url); + } + }); + }, + /** * Sets the HTML used as the template and optionally compiles it. * @param {String} html