projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
39e9e4c
)
Roo/Template.js
author
Alan Knowles
<alan@akbkhome.com>
Fri, 6 Apr 2012 15:20:33 +0000
(23:20 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Fri, 6 Apr 2012 15:20:33 +0000
(23:20 +0800)
Roo/Template.js
patch
|
blob
|
history
diff --git
a/Roo/Template.js
b/Roo/Template.js
index
73f962b
..
bfcc6cd
100644
(file)
--- a/
Roo/Template.js
+++ b/
Roo/Template.js
@@
-105,12
+105,18
@@
Roo.Template.prototype = {
if (this.loading) {
return;
}
+ this.loading = true;
+ var _t = this;
var cx = new Roo.data.Connection({
url : url,
method : 'GET',
- success : success,
+ success : function () {
+ _t.loading = false;
+ success && success();
+ },
failure : function() {
- Roo.log("Template failed to load from " + url);
+ Roo.log("Template failed to load from " + url);
+ _t.loading = false;
}
});
},