Fix #6625 - undo reset
[roojs1] / Roo / Template.js
index 78917f5..f117c9a 100644 (file)
@@ -68,11 +68,18 @@ Roo.Template.prototype = {
      * @cfg {String} html  The HTML fragment or an array of fragments to join("") or multiple arguments to join("")
      */
     html : '',
+    
+    
+    compiled : false,
+    loaded : false,
     /**
      * Returns an HTML fragment of this template with the specified values applied.
      * @param {Object} values The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})
      * @return {String} The HTML fragment
      */
+    
+   
+    
     applyTemplate : function(values){
         //Roo.log(["applyTemplate", values]);
         try {
@@ -134,7 +141,9 @@ Roo.Template.prototype = {
             success : function (response) {
                 _t.loading = false;
                 _t.url = false;
-                _t.set(response.responseText,true)
+                
+                _t.set(response.responseText,true);
+                _t.loaded = true;
                 if (_t.onLoad) {
                     _t.onLoad();
                 }
@@ -154,7 +163,7 @@ Roo.Template.prototype = {
      */
     set : function(html, compile){
         this.html = html;
-        this.compiled = null;
+        this.compiled = false;
         if(compile){
             this.compile();
         }