Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
imagick
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
10
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
imagick
Commits
fe4d56a4
Commit
fe4d56a4
authored
3 weeks ago
by
Andrei Ivnitskii
Browse files
Options
Downloads
Patches
Plain Diff
Revert "Issue
#3492855
by ivnish: Fix eslint warnings"
This reverts commit
320f9468
.
parent
ff8b9b8b
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
imagick.info.yml
+1
-1
1 addition, 1 deletion
imagick.info.yml
js/imagick.colorpicker.js
+15
-6
15 additions, 6 deletions
js/imagick.colorpicker.js
with
16 additions
and
7 deletions
imagick.info.yml
+
1
−
1
View file @
fe4d56a4
...
...
@@ -5,4 +5,4 @@ package: Imagick
core_version_requirement
:
^10.2 || ^11
configure
:
system.image_toolkit_settings
dependencies
:
-
drupal:image
-
drupal:image
This diff is collapsed.
Click to expand it.
js/imagick.colorpicker.js
+
15
−
6
View file @
fe4d56a4
(
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
);
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment