Skip to content
Snippets Groups Projects
Commit 085f1228 authored by Robert Speicher's avatar Robert Speicher
Browse files

Unbind task item checkbox events and then rebind them

Fixes #1340
parent 33a8f53f
No related branches found
No related tags found
1 merge request!478Unbind task item checkbox events and then rebind them
Loading
Loading
@@ -9,12 +9,8 @@ class @Issue
if $("a.btn-close").length
$("li.task-list-item input:checkbox").prop("disabled", false)
 
$(".task-list-item input:checkbox").on(
"click"
null
"issue"
updateTaskState
)
$('.task-list-item input:checkbox').off('change')
$('.task-list-item input:checkbox').change('issue', updateTaskState)
 
$('.issue-details').waitForImages ->
$('.issuable-affix').affix offset:
Loading
Loading
Loading
Loading
@@ -81,12 +81,8 @@ class @MergeRequest
this.$('.remove_source_branch_in_progress').hide()
this.$('.remove_source_branch_widget.failed').show()
 
$(".task-list-item input:checkbox").on(
"click"
null
"merge_request"
updateTaskState
)
$('.task-list-item input:checkbox').off('change')
$('.task-list-item input:checkbox').change('merge_request', updateTaskState)
 
activateTab: (action) ->
this.$('.merge-request-tabs li').removeClass 'active'
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment