diff options
| author | Xavier Morel <xmo@openerp.com> | 2011-04-12 15:21:20 +0200 |
|---|---|---|
| committer | Xavier Morel <xmo@openerp.com> | 2011-04-12 15:21:20 +0200 |
| commit | d7da740264e35dd67a7a891770b47d2bc38578ef (patch) | |
| tree | 3c381edfd569b045e959ccd71dbe21dfef141421 /addons/base/static/lib/qweb/qweb.js | |
| parent | b840e25c1d901f0d83c41eef38ada73e8d61bd7b (diff) | |
| parent | b70b02bc5138d7f5f4b70433cb47e28c39f1f953 (diff) | |
[MERGE] from mainline branch, hook in new record handling
bzr revid: xmo@openerp.com-20110412132120-ii3mosez9kguvcjb
Diffstat (limited to 'addons/base/static/lib/qweb/qweb.js')
| -rw-r--r-- | addons/base/static/lib/qweb/qweb.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/addons/base/static/lib/qweb/qweb.js b/addons/base/static/lib/qweb/qweb.js index 59bcd12ef9b..05dd9d65fe2 100644 --- a/addons/base/static/lib/qweb/qweb.js +++ b/addons/base/static/lib/qweb/qweb.js @@ -166,7 +166,9 @@ var QWeb = { for (var an in g_att) { att += " " + an + '="' + this.escape_att(g_att[an]) + '"'; } - return inner.length ? "<" + e.tagName + att + ">" + inner + "</" + e.tagName + ">" : "<" + e.tagName + att + "/>"; + // Some IE versions have problems with closed tags + var opentag = !!t_att['opentag'] && this.eval_bool(t_att["opentag"], v); + return inner.length || opentag ? "<" + e.tagName + att + ">" + inner + "</" + e.tagName + ">" : "<" + e.tagName + att + "/>"; }, render_att_att:function(e, t_att, g_att, v, ext, av) { if (ext) { |
