Commit 898887ee authored by Lisa Seeto's avatar Lisa Seeto

Bug 1847009: Plans are no longer able to be check marked

- call the enableCheckBoxes() when all blocks have been loaded
and not on page load

behatnotneeded

Change-Id: I921f58a737abcb5ff29e1b5cdc26315a3c739588
Signed-off-by: default avatarLisa Seeto <lisaseeto@catalyst.net.nz>
parent ad4dd6af
...@@ -65,7 +65,8 @@ jQuery(document).on('pageupdated', function(e, data) { ...@@ -65,7 +65,8 @@ jQuery(document).on('pageupdated', function(e, data) {
enableCheckBoxes(); enableCheckBoxes();
}); });
jQuery(function() { jQuery(window).on('blocksloaded', {}, function() {
// On page load "use strict";
// after all blocks are loaded
enableCheckBoxes(); enableCheckBoxes();
}); });
...@@ -391,7 +391,6 @@ function toggleDetailsBtn() { ...@@ -391,7 +391,6 @@ function toggleDetailsBtn() {
// Make sure active block headers still display after pagination // Make sure active block headers still display after pagination
$(document).on('pageupdated', function(e, data) { $(document).on('pageupdated', function(e, data) {
console.log('pageupdated');
var headers = $('#main-column-container').find('.block-header'); var headers = $('#main-column-container').find('.block-header');
if ($('#details-btn').hasClass('active')) { if ($('#details-btn').hasClass('active')) {
headers.removeClass('d-none'); headers.removeClass('d-none');
......
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