[FIX] web: Form: handle attributes and modifiers on notebook

Before this commit, the renderer interpreted the special tag, but ignored
modifiers and attributes.

Most nodes are rendered by the `_renderGenericElement` method, so this behaviour
is automatic. However, special tags need to do it explicitely.
This commit is contained in:
Martin Geubelle
2017-05-19 15:02:21 +02:00
parent 92409cdfe5
commit ea7ff8f6fa
2 changed files with 32 additions and 3 deletions
@@ -679,10 +679,12 @@ var FormRenderer = BasicRenderer.extend({
},
});
});
return $('<div class="o_notebook">')
var $notebook = $('<div class="o_notebook">')
.data('name', node.attrs.name || '_default_')
.append($headers)
.append($pages);
.append($headers, $pages);
this._registerModifiers(node, this.state, $notebook);
this._handleAttributes($notebook, node);
return $notebook;
},
/**
* @private