[imp] nivified frames
authorniv-openerp <nicolas.vanhoren@openerp.com>
Tue, 7 Feb 2012 11:09:31 +0000 (12:09 +0100)
committerniv-openerp <nicolas.vanhoren@openerp.com>
Tue, 7 Feb 2012 11:09:31 +0000 (12:09 +0100)
bzr revid: nicolas.vanhoren@openerp.com-20120207110931-3z2iz6c3qb3b9xv0

addons/web/static/src/js/view_form.js

index eb24515..0e0bbaa 100644 (file)
@@ -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]);