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