projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2997769
)
Roo/Template.js
author
Alan Knowles
<alan@akbkhome.com>
Fri, 6 Apr 2012 15:23:22 +0000
(23:23 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Fri, 6 Apr 2012 15:23:22 +0000
(23:23 +0800)
Roo/Template.js
patch
|
blob
|
history
diff --git
a/Roo/Template.js
b/Roo/Template.js
index
bfcc6cd
..
2f1e80f
100644
(file)
--- 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;
}