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
293
293
*/
294
294
public function hiddenOn (string $ action , array $ fields ): static
295
295
{
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 }') { " ;
298
298
foreach ($ fields as $ field ) {
299
- $ script .= "this.hide(' {$ field }'); " . PHP_EOL ;
299
+ $ script .= "this.hide(' {$ field }'); " ;
300
300
}
301
- $ script .= '} else { ' . PHP_EOL ;
301
+ $ script .= '} else { ' ;
302
302
foreach ($ fields as $ field ) {
303
- $ script .= "this.show(' {$ field }'); " . PHP_EOL ;
303
+ $ script .= "this.show(' {$ field }'); " ;
304
304
}
305
- $ script .= '} ' . PHP_EOL ;
306
- $ script .= 'return true; ' . PHP_EOL ;
307
- $ script .= '} ' . PHP_EOL ;
305
+ $ script .= '} ' ;
306
+ $ script .= 'return true; ' ;
307
+ $ script .= '} ' ;
308
308
309
309
$ this ->onPreOpen ($ script );
310
310
You can’t perform that action at this time.
0 commit comments