Commit a0d58a83 authored by Alfredo Sumaran's avatar Alfredo Sumaran

Reinitialize checkboxes to toggle event bindings

parent 72d87d6c
...@@ -99,11 +99,12 @@ issuable_created = false ...@@ -99,11 +99,12 @@ issuable_created = false
$('#filter_issue_search').val($('#issue_search').val()) $('#filter_issue_search').val($('#issue_search').val())
initChecks: -> initChecks: ->
$('.check_all_issues').off('click').on 'click', -> $('.check_all_issues').off('click').on('click', ->
$('.selected_issue').prop('checked', @checked) $('.selected_issue').prop('checked', @checked)
Issuable.checkChanged() Issuable.checkChanged()
)
$('.selected_issue').off('change').on 'change', Issuable.checkChanged $('.selected_issue').off('change').on('change', Issuable.checkChanged)
updateStateFilters: -> updateStateFilters: ->
stateFilters = $('.issues-state-filters, .dropdown-menu-sort') stateFilters = $('.issues-state-filters, .dropdown-menu-sort')
......
...@@ -9,6 +9,9 @@ class @IssuableBulkActions ...@@ -9,6 +9,9 @@ class @IssuableBulkActions
@bindEvents() @bindEvents()
# Fixes bulk-assign not working when navigating through pages
Issuable.initChecks();
getElement: (selector) -> getElement: (selector) ->
@container.find selector @container.find selector
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment