diff options
author | Alfredo Sumaran <alfredo@gitlab.com> | 2016-06-13 21:30:14 +0300 |
---|---|---|
committer | Alfredo Sumaran <alfredo@gitlab.com> | 2016-06-14 20:39:51 +0300 |
commit | a0d58a83e0f1980defe560991648c6f5f1ba0d0b (patch) | |
tree | 9a5d0638898db115aa6656b1a6c9e88a90f13bd4 | |
parent | 72d87d6c16fc2bea4bef7a8ec246db598f4d19cf (diff) |
Reinitialize checkboxes to toggle event bindings
-rw-r--r-- | app/assets/javascripts/issuable.js.coffee | 5 | ||||
-rw-r--r-- | app/assets/javascripts/issues-bulk-assignment.js.coffee | 3 |
2 files changed, 6 insertions, 2 deletions
diff --git a/app/assets/javascripts/issuable.js.coffee b/app/assets/javascripts/issuable.js.coffee index edeb43eae1a..31a6bb15d52 100644 --- a/app/assets/javascripts/issuable.js.coffee +++ b/app/assets/javascripts/issuable.js.coffee @@ -99,11 +99,12 @@ issuable_created = false $('#filter_issue_search').val($('#issue_search').val()) initChecks: -> - $('.check_all_issues').off('click').on 'click', -> + $('.check_all_issues').off('click').on('click', -> $('.selected_issue').prop('checked', @checked) Issuable.checkChanged() + ) - $('.selected_issue').off('change').on 'change', Issuable.checkChanged + $('.selected_issue').off('change').on('change', Issuable.checkChanged) updateStateFilters: -> stateFilters = $('.issues-state-filters, .dropdown-menu-sort') diff --git a/app/assets/javascripts/issues-bulk-assignment.js.coffee b/app/assets/javascripts/issues-bulk-assignment.js.coffee index 9dc3529a17f..b454f9389dd 100644 --- a/app/assets/javascripts/issues-bulk-assignment.js.coffee +++ b/app/assets/javascripts/issues-bulk-assignment.js.coffee @@ -9,6 +9,9 @@ class @IssuableBulkActions @bindEvents() + # Fixes bulk-assign not working when navigating through pages + Issuable.initChecks(); + getElement: (selector) -> @container.find selector |