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
0e3208c4
Commit
0e3208c4
authored
Jun 23, 2016
by
Alfredo Sumaran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use instance property to enable/disable label assignment
parent
7c9909eb
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
12 deletions
+3
-12
issuable.js.coffee
app/assets/javascripts/issuable.js.coffee
+1
-1
issues-bulk-assignment.js.coffee
app/assets/javascripts/issues-bulk-assignment.js.coffee
+1
-10
labels_select.js.coffee
app/assets/javascripts/labels_select.js.coffee
+1
-1
No files found.
app/assets/javascripts/issuable.js.coffee
View file @
0e3208c4
...
...
@@ -91,6 +91,6 @@ issuable_created = false
$
(
'#update_issues_ids'
).
val
[]
$
(
'.issues_bulk_update'
).
hide
()
$
(
'.issues-other-filters'
).
show
()
@
issuableBulkActions
.
disableWillUpdate
()
@
issuableBulkActions
.
willUpdateLabels
=
false
return
true
app/assets/javascripts/issues-bulk-assignment.js.coffee
View file @
0e3208c4
...
...
@@ -10,22 +10,13 @@ class @IssuableBulkActions
# Save instance
@
form
.
data
'bulkActions'
,
@
@
disableWillUpdate
()
@
willUpdateLabels
=
false
@
bindEvents
()
# Fixes bulk-assign not working when navigating through pages
Issuable
.
initChecks
();
enableWillUpdate
:
->
@
toggleWillUpdate
(
true
)
disableWillUpdate
:
->
@
toggleWillUpdate
(
false
)
toggleWillUpdate
:
(
enable
)
->
@
willUpdateLabels
=
if
enable
?
then
enable
else
not
@
willUpdateLabels
getElement
:
(
selector
)
->
@
container
.
find
selector
...
...
app/assets/javascripts/labels_select.js.coffee
View file @
0e3208c4
...
...
@@ -383,4 +383,4 @@ class @LabelsSelect
enableBulkLabelDropdown
:
->
if
$
(
'.selected_issue:checked'
).
length
issuableBulkActions
=
$
(
'.bulk-update'
).
data
(
'bulkActions'
)
issuableBulkActions
.
enableWillUpdate
()
issuableBulkActions
.
willUpdateLabels
=
true
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