From d110232a63d6205dc7f68dd7819fb1b072a16c6c Mon Sep 17 00:00:00 2001 From: Alberto Paderno <apaderno@isepro.org> Date: Sat, 6 Jul 2024 09:21:04 +0200 Subject: [PATCH] Issue #3417499: Fix ESLint errors for the Field Example module --- modules/field_example/field_example.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/field_example/field_example.js b/modules/field_example/field_example.js index 4d07ff9e..b149e89a 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); -- GitLab