We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0390273 commit ff2819fCopy full SHA for ff2819f
src/Html/Editor/Editor.php
@@ -294,13 +294,13 @@ public function hiddenOnCreate(array $fields): static
294
public function hiddenOn(string $action, array $fields): static
295
{
296
$script = 'function(e, mode, action) {';
297
- $script .= "if (action === '{$action}') {";
+ $script .= "if (action === '$action') {";
298
foreach ($fields as $field) {
299
- $script .= "this.hide('{$field}');";
+ $script .= "this.hide('$field');";
300
}
301
$script .= '} else {';
302
303
- $script .= "this.show('{$field}');";
+ $script .= "this.show('$field');";
304
305
$script .= '}';
306
$script .= 'return true;';
0 commit comments