X-Git-Url: http://git.roojs.org/?p=roojs1;a=blobdiff_plain;f=Roo%2FTemplate.js;h=2f1e80f3de29b81d6c8913e78e7d100cc8f04dc9;hp=bfcc6cd9dca8cbe8a9d5c52d7f3d0d0e8a0a8711;hb=2c1a1f6961f37761ed8791ab5921db5b2f848291;hpb=2997769ebcc32a8d8b7193e06e9879cbb2df3610 diff --git a/Roo/Template.js b/Roo/Template.js index bfcc6cd9dc..2f1e80f3de 100644 --- a/Roo/Template.js +++ b/Roo/Template.js @@ -107,14 +107,16 @@ Roo.Template.prototype = { } this.loading = true; var _t = this; - var cx = new Roo.data.Connection({ + var cx = new Roo.data.Connection(); + cx.request({ url : url, method : 'GET', - success : function () { + success : function (response) { _t.loading = false; + _t.html = response.responseText; success && success(); }, - failure : function() { + failure : function(response) { Roo.log("Template failed to load from " + url); _t.loading = false; }