diff --git a/public/js/legacy/widgets/form/form.js b/public/js/legacy/widgets/form/form.js index 5ad2d2e2a5..a0e4338590 100644 --- a/public/js/legacy/widgets/form/form.js +++ b/public/js/legacy/widgets/form/form.js @@ -562,8 +562,8 @@ _f.Frm.prototype.refresh_fields = function() { } // refresh sections - $.each(this.sections, function(i, f) { - f.refresh(true); + $.each(this.sections, function(i, section) { + section.toggle(!(section[0].df && section[0].df.hidden)); }) // cleanup activities after refresh diff --git a/public/js/wn/form/grid.js b/public/js/wn/form/grid.js index 9199149815..9666977e4a 100644 --- a/public/js/wn/form/grid.js +++ b/public/js/wn/form/grid.js @@ -22,18 +22,12 @@ wn.ui.form.Grid = Class.extend({ var me = this; $(this.parent).find(".grid-row").remove(); $.each(this.get_data() || [], function(ri, d) { - var panel = $('