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
0
Merge Requests
0
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
Léo-Paul Géneau
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
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
12 deletions
+3
-12
app/assets/javascripts/issuable.js.coffee
app/assets/javascripts/issuable.js.coffee
+1
-1
app/assets/javascripts/issues-bulk-assignment.js.coffee
app/assets/javascripts/issues-bulk-assignment.js.coffee
+1
-10
app/assets/javascripts/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
...
@@ -91,6 +91,6 @@ issuable_created = false
$
(
'#update_issues_ids'
).
val
[]
$
(
'#update_issues_ids'
).
val
[]
$
(
'.issues_bulk_update'
).
hide
()
$
(
'.issues_bulk_update'
).
hide
()
$
(
'.issues-other-filters'
).
show
()
$
(
'.issues-other-filters'
).
show
()
@
issuableBulkActions
.
disableWillUpdate
()
@
issuableBulkActions
.
willUpdateLabels
=
false
return
true
return
true
app/assets/javascripts/issues-bulk-assignment.js.coffee
View file @
0e3208c4
...
@@ -10,22 +10,13 @@ class @IssuableBulkActions
...
@@ -10,22 +10,13 @@ class @IssuableBulkActions
# Save instance
# Save instance
@
form
.
data
'bulkActions'
,
@
@
form
.
data
'bulkActions'
,
@
@
disableWillUpdate
()
@
willUpdateLabels
=
false
@
bindEvents
()
@
bindEvents
()
# Fixes bulk-assign not working when navigating through pages
# Fixes bulk-assign not working when navigating through pages
Issuable
.
initChecks
();
Issuable
.
initChecks
();
enableWillUpdate
:
->
@
toggleWillUpdate
(
true
)
disableWillUpdate
:
->
@
toggleWillUpdate
(
false
)
toggleWillUpdate
:
(
enable
)
->
@
willUpdateLabels
=
if
enable
?
then
enable
else
not
@
willUpdateLabels
getElement
:
(
selector
)
->
getElement
:
(
selector
)
->
@
container
.
find
selector
@
container
.
find
selector
...
...
app/assets/javascripts/labels_select.js.coffee
View file @
0e3208c4
...
@@ -383,4 +383,4 @@ class @LabelsSelect
...
@@ -383,4 +383,4 @@ class @LabelsSelect
enableBulkLabelDropdown
:
->
enableBulkLabelDropdown
:
->
if
$
(
'.selected_issue:checked'
).
length
if
$
(
'.selected_issue:checked'
).
length
issuableBulkActions
=
$
(
'.bulk-update'
).
data
(
'bulkActions'
)
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