Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
examples
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
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
examples
Merge requests
!68
Issue
#3417499
: Fix ESLint errors for the Field Example module
Code
Review changes
Check out branch
Open in Workspace
Download
Patches
Plain diff
Expand sidebar
Merged
Issue
#3417499
: Fix ESLint errors for the Field Example module
issue/examples-3417499:3417499-pass-eslint-validations
into
4.0.x
Overview
0
Commits
1
Pipelines
2
Changes
1
Merged
Issue #3417499: Fix ESLint errors for the Field Example module
Alberto Paderno
requested to merge
issue/examples-3417499:3417499-pass-eslint-validations
into
4.0.x
Jul 6, 2024
Overview
0
Commits
1
Pipelines
2
Changes
1
Closes
#3417499
0
0
Merge request reports
Compare
4.0.x
4.0.x (base)
and
latest version
latest version
d110232a
1 commit,
Jul 6, 2024
1 file
+
5
−
5
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
modules/field_example/field_example.js
+
5
−
5
View file @ d110232a
Edit in single-file editor
Open in Web IDE
Show full file
@@ -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
_f
ield
=
this
;
const
edit
F
ield
=
this
;
const
picker
=
$
(
this
)
.
closest
(
'
div
'
)
.
parent
()
@@ -19,9 +19,9 @@
$
(
'
.field-example-colorpicker
'
).
hide
();
$
(
picker
).
show
();
$
.
farbtastic
(
picker
,
function
(
color
)
{
edit
_f
ield
.
value
=
color
;
}).
setColor
(
edit
_f
ield
.
value
);
edit
F
ield
.
value
=
color
;
}).
setColor
(
edit
F
ield
.
value
);
});
}
,
}
};
})(
jQuery
);
Loading