Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
imagick
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
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
Merge requests
!15
Issue
#3492855
by ivnish: Fix eslint warnings
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Issue
#3492855
by ivnish: Fix eslint warnings
issue/imagick-3492855:3492855-fix-eslint-warnings
into
8.x-1.x
Overview
0
Commits
2
Pipelines
2
Changes
2
Merged
Andrei Ivnitskii
requested to merge
issue/imagick-3492855:3492855-fix-eslint-warnings
into
8.x-1.x
4 months ago
Overview
0
Commits
2
Pipelines
2
Changes
2
Expand
Related to
#3492855
0
0
Merge request reports
Compare
8.x-1.x
version 1
6051c2ec
4 months ago
8.x-1.x (base)
and
latest version
latest version
03b1b605
2 commits,
4 months ago
version 1
6051c2ec
1 commit,
4 months ago
2 files
+
7
−
16
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
js/imagick.colorpicker.js
+
6
−
15
Options
(
function
(
$
)
{
(
function
(
$
,
Drupal
)
{
"
use strict
"
;
// Adds the JS that binds the textarea with the farbtastic element.
// Adds the JS that binds the textarea with the farbtastic element.
// Find each colorpicker placeholder:
// Find each colorpicker placeholder:
// initialize it,
// initialize it,
// then find the nearby textfield that is of type colorentry
// then find the nearby textfield that is of type colorentry
// and attach the colorpicker behavior to it.
// and attach the colorpicker behavior to it.
// This is so we can support more that one per page if necessary.
// This is so we can support more that one per page if necessary.
Drupal
.
behaviors
.
colorpicker
=
{
Drupal
.
behaviors
.
colorpicker
=
{
attach
()
{
attach
:
function
(
context
)
{
$
(
'
.colorpicker
'
).
each
(
function
()
{
$
(
'
.colorpicker
'
).
each
(
function
()
{
var
$this
=
$
(
this
);
const
linkedTarget
=
$
(
'
.colorentry
'
,
$
(
this
).
closest
(
'
.colorform
'
));
var
linked_target
=
$
(
'
.colorentry
'
,
$this
.
closest
(
'
.colorform
'
));
$
.
farbtastic
(
$
(
this
),
linkedTarget
);
$
.
farbtastic
(
$this
,
linked_target
);
});
});
}
},
};
};
})(
jQuery
,
Drupal
);
})(
jQuery
);
Loading