File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -502,12 +502,14 @@ function modelSearch(str) {
502502}
503503
504504function hideColumns ( t ) {
505- $ ( '#editview .content .hiddenBySelect' ) . removeClass ( 'hiddenBySelect' ) ;
506505 var hide = $ ( t ) . children ( 'option:selected' ) . data ( 'hide' ) ;
507- if ( hide ) hide . split ( ',' ) . forEach ( function ( hide ) {
508- $ ( 'LABEL[for=input_' + hide + ']' ) . addClass ( 'hiddenBySelect' ) ;
509- $ ( '#input_' + hide ) . addClass ( 'hiddenBySelect' ) ;
510- } ) ;
506+ if ( hide ) {
507+ $ ( '#editview .content .hiddenBySelect' ) . removeClass ( 'hiddenBySelect' ) ;
508+ hide . split ( ',' ) . forEach ( function ( hide ) {
509+ $ ( 'LABEL[for=input_' + hide + ']' ) . addClass ( 'hiddenBySelect' ) ;
510+ $ ( '#input_' + hide ) . addClass ( 'hiddenBySelect' ) ;
511+ } ) ;
512+ }
511513}
512514
513515function modelInit ( slug ) {
You can’t perform that action at this time.
0 commit comments