BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
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
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
3 deletions
+15
-3
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,7 +301,9 @@ class @LabelsSelect
saveLabelData
()
if
$dropdown
.
hasClass
(
'js-filter-bulk-update'
)
$dropdown
.
parent
().
find
(
'.is-active, .is-indeterminate'
).
removeClass
()
# 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'
clicked
:
(
label
)
->
...
...
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