Avoid uneccessary re-rendering of form

This commit is contained in:
guerler
2016-08-19 08:23:48 -04:00
parent 118c397304
commit bda8ba737d
8 changed files with 13 additions and 13 deletions
+2 -2
View File
@@ -13,9 +13,9 @@ function( Utils, Portlet, Ui, FormSection, FormData ) {
values : null,
inputs : []
});
this.options.inputs = $.extend( {}, this.options.inputs, true );
this.setElement( '<div/>' );
this.render();
this.options.inputs = $.extend( {}, this.options.inputs, true );
this.options.values ? this.set( this.options.values ) : this.render();
},
/** Set parameter values from value dictionary, needs to be enhanced to support repeats */