diff --git a/src/view/form.js b/src/view/form.js index 0c4ab05e8f..060cfda533 100644 --- a/src/view/form.js +++ b/src/view/form.js @@ -463,6 +463,7 @@ function eval_pyson(value){ this.el = jQuery('', { 'class': 'form-container responsive responsive-noheader' }); + this.body = jQuery('').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('')); + this.body.append(jQuery('')); }, rows: function() { - return this.el.children().children('tr'); + return this.body.children('tr'); }, row: function() { return this.rows().last();