summaryrefslogtreecommitdiff
path: root/addons/web/static/src
diff options
context:
space:
mode:
authorXavier Morel <xmo@openerp.com>2011-12-21 11:37:50 +0100
committerXavier Morel <xmo@openerp.com>2011-12-21 11:37:50 +0100
commitc49498e0a4e15c0169cfec91712bc526751d84eb (patch)
tree993d88c63acc279d6697aca91bbe73a6840065f3 /addons/web/static/src
parent7af1a8662cfa20ded2a9de02e74b8a7a2a994cf8 (diff)
[FIX] attributes handling on HTML nodes
bzr revid: xmo@openerp.com-20111221103750-wemo7rszah8vvvxa
Diffstat (limited to 'addons/web/static/src')
-rw-r--r--addons/web/static/src/js/view_form.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/addons/web/static/src/js/view_form.js b/addons/web/static/src/js/view_form.js
index fe1ebe1e1a4..d728ab7160f 100644
--- a/addons/web/static/src/js/view_form.js
+++ b/addons/web/static/src/js/view_form.js
@@ -3070,7 +3070,8 @@ openerp.web.form.WidgetHtml = openerp.web.form.Widget.extend({
[child.attrs.widget, type.type, child.tag])) (self.view, child);
$into.append(widget.render());
} else {
- var $child = $(document.createElement(child.tag), child.attrs)
+ var $child = $(document.createElement(child.tag))
+ .attr(child.attrs)
.appendTo($into);
self.render_children(child, $child);
}