From 7fc2a1506ab155fb198b0920ef893fa7eca3c629 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Fri, 6 Apr 2012 23:19:08 +0800 Subject: [PATCH] Roo/Template.js --- Roo/Template.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) 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 -- 2.39.2