Create explicitly the tbody for the table of the Form Container

issue7209
review37081002
This commit is contained in:
Cédric Krier committed 2018-03-15 00:25:51 +01:00
1 parent ecf701cb82
commit d694b17804
1 file changed
+3 -2
+3 -2
View File
@@ -463,6 +463,7 @@ function eval_pyson(value){
this.el = jQuery('<table/>', {
'class': 'form-container responsive responsive-noheader'
});
this.body = jQuery('<tbody/>').appendTo(this.el);
if (this.col <= 0) {
this.el.addClass('form-hcontainer');
} else if (this.col == 1) {
@@ -471,10 +472,10 @@ function eval_pyson(value){
this.add_row();
},
add_row: function() {
this.el.append(jQuery('<tr/>'));
this.body.append(jQuery('<tr/>'));
},
rows: function() {
return this.el.children().children('tr');
return this.body.children('tr');
},
row: function() {
return this.rows().last();