[IMP] Make QWeb t-js compatible with QWeb2

bzr revid: fme@openerp.com-20110504093017-f3ffquw8a7rm3wo5
This commit is contained in:
Fabien Meghazi 2011-05-04 11:30:17 +02:00
parent 706255d2fc
commit 78684024a1
1 changed files with 4 additions and 1 deletions

View File

@ -234,8 +234,11 @@ var QWeb = {
return this.render(t_att["call"], d);
},
render_tag_js:function(e, t_att, g_att, v) {
var dict_name = t_att["js"] || "dict";
v[dict_name] = v;
var r = this.eval_str(this.render_element(e, t_att, g_att, v), v);
return t_att["js"] != "quiet" ? r : "";
delete(v[dict_name]);
return r || '';
},
/**
* Renders a foreach loop (@t-foreach).