Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukas Eipert <leipert@gitlab.com>2018-08-03 18:36:53 +0300
committerLukas Eipert <leipert@gitlab.com>2018-08-03 20:27:07 +0300
commit273515b8a15cc9f920d6bf868f6a546ad832214e (patch)
treed4584191d3700744bfe2df2593ce9ee477582cd4 /app/assets/javascripts/groups_select.js
parent8a9421429d15a805ef07b8200bcba551fe7314ff (diff)
backport changes from https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/6740
Diffstat (limited to 'app/assets/javascripts/groups_select.js')
-rw-r--r--app/assets/javascripts/groups_select.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/assets/javascripts/groups_select.js b/app/assets/javascripts/groups_select.js
index 310f6fe06cf..e37fc5c4be6 100644
--- a/app/assets/javascripts/groups_select.js
+++ b/app/assets/javascripts/groups_select.js
@@ -12,6 +12,7 @@ export default function groupsSelect() {
const skipGroups = $select.data('skipGroups') || [];
$select.select2({
placeholder: 'Search for a group',
+ allowClear: $select.hasClass('allowClear'),
multiple: $select.hasClass('multiselect'),
minimumInputLength: 0,
ajax: {