Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
f02ee986
Commit
f02ee986
authored
May 05, 2016
by
Alfredo Sumaran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tweaks for bulk assignment
parent
151158f1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
3 deletions
+15
-3
app/assets/javascripts/labels_select.js.coffee
app/assets/javascripts/labels_select.js.coffee
+15
-3
No files found.
app/assets/javascripts/labels_select.js.coffee
View file @
f02ee986
...
...
@@ -237,13 +237,23 @@ class @LabelsSelect
else
colorEl
=
''
# We need to identify which items are actually labels
labelIdHtml
=
labelClass
=
''
if
label
.
id
# Add label id only for labels
labelIdHtml
=
"data-label-id='
#{
label
.
id
}
'"
# Add class only for labels
labelClass
=
'label-item'
"<li>
<a href='#'
class='
#{
selectedClass
.
join
(
' '
)
}
'>
<a href='#'
#{
labelIdHtml
}
class='
#{
labelClass
}
#{
selectedClass
.
join
(
' '
)
}
'>
#{
colorEl
}
#{
_
.
escape
(
label
.
title
)
}
</a>
</li>"
filterable
:
true
persistWhenHide
:
$dropdown
.
data
(
'persistWhenHide'
)
search
:
fields
:
[
'title'
]
selectable
:
true
...
...
@@ -291,6 +301,8 @@ class @LabelsSelect
saveLabelData
()
if
$dropdown
.
hasClass
(
'js-filter-bulk-update'
)
# If we are persisting state we need the classes
if
not
@
options
.
persistWhenHide
$dropdown
.
parent
().
find
(
'.is-active, .is-indeterminate'
).
removeClass
()
multiSelect
:
$dropdown
.
hasClass
'js-multiselect'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment