projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2b09786
)
Roo/Template.js
author
Alan Knowles
<alan@akbkhome.com>
Fri, 6 Apr 2012 15:27:55 +0000
(23:27 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Fri, 6 Apr 2012 15:27:55 +0000
(23:27 +0800)
Roo/Template.js
patch
|
blob
|
history
diff --git
a/Roo/Template.js
b/Roo/Template.js
index
9bf53bb
..
a04b261
100644
(file)
--- a/
Roo/Template.js
+++ b/
Roo/Template.js
@@
-64,7
+64,12
@@
Roo.Template.prototype = {
*/
applyTemplate : function(values){
try {
- if ()
+ _t= this;
+ if (this.url) {
+ this.afterLoad = function () { _t.applyTemplate(values); };
+ this.load();
+ return;
+ }
if(this.compiled){
return this.compiled(values);
}
@@
-106,7
+111,7
@@
Roo.Template.prototype = {
afterLoad : false,
- load : function (
url,
success)
+ load : function (success)
{
this.afterLoad = success;