Browse Source

Explicitly defined "showMaskChoiceEl" JS variable (#4128)

Koen Verheyen 9 years ago
parent
commit
317fd55716
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Resources/views/Form/form_admin_fields.html.twig

+ 1 - 1
Resources/views/Form/form_admin_fields.html.twig

@@ -467,7 +467,7 @@ file that was distributed with this source code.
             var allFields = {{ all_fields|json_encode|raw }};
             var map = {{ map|json_encode|raw }};
 
-            showMaskChoiceEl = jQuery('#{{ main_form_name }}{{ name }}');
+            var showMaskChoiceEl = jQuery('#{{ main_form_name }}{{ name }}');
 
             showMaskChoiceEl.on('change', function () {
                 choice_field_mask_show(jQuery(this).val());