Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ui_icons
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
ui_icons
Merge requests
!11
Issue
#3469138
by mogtofu33: Fancy Icon picker
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Issue
#3469138
by mogtofu33: Fancy Icon picker
issue/ui_icons-3469138:3469138-1.0.0-alpha3-fancy-icon
into
1.0.x
Overview
0
Commits
1
Pipelines
4
Changes
14
Merged
Jean Valverde
requested to merge
issue/ui_icons-3469138:3469138-1.0.0-alpha3-fancy-icon
into
1.0.x
9 months ago
Overview
0
Commits
1
Pipelines
4
Changes
14
Expand
Closes
#3469138
0
0
Merge request reports
Compare
1.0.x
version 2
dcdd7ebd
9 months ago
version 1
cc1be597
9 months ago
1.0.x (base)
and
latest version
latest version
7ad7ec22
1 commit,
9 months ago
version 2
dcdd7ebd
1 commit,
9 months ago
version 1
cc1be597
1 commit,
9 months ago
14 files
+
862
−
10
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
14
Search (e.g. *.vue) (Ctrl+P)
js/icon.autocomplete.js
+
7
−
2
Options
@@ -4,7 +4,6 @@
*/
// eslint-disable-next-line func-names
(
function
(
$
,
Drupal
,
once
)
{
'
use strict
'
;
/**
* UI Icons autocomplete tweaks.
*
@@ -23,6 +22,12 @@
}
iconSelectors
.
forEach
((
iconSelector
)
=>
{
const
selector
=
jQuery
(
iconSelector
);
if
(
typeof
selector
.
autocomplete
()
!==
'
function
'
)
{
return
;
}
// Current Drupal core autocomplete is based on jQuery UI.
// Change autocomplete trigger to 3 characters and set delay a bit
// longer from 300 to 500.
@@ -33,7 +38,7 @@
delay
:
500
,
minLength
:
2
,
};
jQuery
(
iconS
elector
)
.
autocomplete
(
'
option
'
,
options
);
s
elector
.
autocomplete
(
'
option
'
,
options
);
});
},
};
Loading