[imp] nivified frames
bzr revid: nicolas.vanhoren@openerp.com-20120207110931-3z2iz6c3qb3b9xv0
This commit is contained in:
parent
ed9eeea3db
commit
a898146cc1
|
@ -898,6 +898,16 @@ openerp.web.form.WidgetFrame = openerp.web.form.Widget.extend({
|
|||
}
|
||||
this.set_row_cells_with(this.table[this.table.length - 1]);
|
||||
},
|
||||
render_element: function() {
|
||||
this._super();
|
||||
var self = this;
|
||||
_.each(this.table, function(row) {
|
||||
_.each(row, function(td) {
|
||||
td.$element = self.$element.find('.' + td.element_class.replace(/[^\r\n\f0-9A-Za-z_-]/g, "\\$&"));
|
||||
td.render_element();
|
||||
});
|
||||
});
|
||||
},
|
||||
add_row: function(){
|
||||
if (this.table.length) {
|
||||
this.set_row_cells_with(this.table[this.table.length - 1]);
|
||||
|
|
Loading…
Reference in New Issue