File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -293,18 +293,18 @@ public function hiddenOnCreate(array $fields): static
293293 */
294294 public function hiddenOn (string $ action , array $ fields ): static
295295 {
296- $ script = 'function(e, mode, action) { ' . PHP_EOL ;
297- $ script .= "if (action === ' {$ action }') { " . PHP_EOL ;
296+ $ script = 'function(e, mode, action) { ' ;
297+ $ script .= "if (action === ' {$ action }') { " ;
298298 foreach ($ fields as $ field ) {
299- $ script .= "this.hide(' {$ field }'); " . PHP_EOL ;
299+ $ script .= "this.hide(' {$ field }'); " ;
300300 }
301- $ script .= '} else { ' . PHP_EOL ;
301+ $ script .= '} else { ' ;
302302 foreach ($ fields as $ field ) {
303- $ script .= "this.show(' {$ field }'); " . PHP_EOL ;
303+ $ script .= "this.show(' {$ field }'); " ;
304304 }
305- $ script .= '} ' . PHP_EOL ;
306- $ script .= 'return true; ' . PHP_EOL ;
307- $ script .= '} ' . PHP_EOL ;
305+ $ script .= '} ' ;
306+ $ script .= 'return true; ' ;
307+ $ script .= '} ' ;
308308
309309 $ this ->onPreOpen ($ script );
310310
You can’t perform that action at this time.
0 commit comments