diff --git a/modules/field_example/field_example.js b/modules/field_example/field_example.js index 4d07ff9efea91cd693dc6006aa74c6de61114726..b149e89a3930487449e11543496e7e45acc4d77a 100644 --- a/modules/field_example/field_example.js +++ b/modules/field_example/field_example.js @@ -4,13 +4,13 @@ */ /** - * Provides a farbtastic colorpicker for the fancier widget. + * Provides a color picker for the fancier widget. */ (function ($) { Drupal.behaviors.field_example_colorpicker = { attach() { $('.edit-field-example-colorpicker').on('focus', function (event) { - const edit_field = this; + const editField = this; const picker = $(this) .closest('div') .parent() @@ -19,9 +19,9 @@ $('.field-example-colorpicker').hide(); $(picker).show(); $.farbtastic(picker, function (color) { - edit_field.value = color; - }).setColor(edit_field.value); + editField.value = color; + }).setColor(editField.value); }); - }, + } }; })(jQuery);