Skip to content
Snippets Groups Projects
Commit fe4d56a4 authored by Andrei Ivnitskii's avatar Andrei Ivnitskii
Browse files

Revert "Issue #3492855 by ivnish: Fix eslint warnings"

This reverts commit 320f9468.
parent ff8b9b8b
No related branches found
No related tags found
No related merge requests found
......@@ -5,4 +5,4 @@ package: Imagick
core_version_requirement: ^10.2 || ^11
configure: system.image_toolkit_settings
dependencies:
- drupal:image
- drupal:image
(function ($, Drupal) {
(function ($) {
"use strict";
// Adds the JS that binds the textarea with the farbtastic element.
// Find each colorpicker placeholder:
// initialize it,
// then find the nearby textfield that is of type colorentry
// and attach the colorpicker behavior to it.
// This is so we can support more that one per page if necessary.
Drupal.behaviors.colorpicker = {
attach() {
attach: function (context) {
$('.colorpicker').each(function () {
const linkedTarget = $('.colorentry', $(this).closest('.colorform'));
$.farbtastic($(this), linkedTarget);
var $this = $(this);
var linked_target = $('.colorentry', $this.closest('.colorform'));
$.farbtastic($this, linked_target);
});
},
}
};
})(jQuery, Drupal);
})(jQuery);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment