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

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
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -65,7 +65,8 @@ jQuery(document).on('pageupdated', function(e, data) {
    enableCheckBoxes();
});

jQuery(function() {
    // On page load
jQuery(window).on('blocksloaded', {}, function() {
"use strict";
    // after all blocks are loaded
    enableCheckBoxes();
});
+0 −1
Original line number Diff line number Diff line
@@ -391,7 +391,6 @@ function toggleDetailsBtn() {

// Make sure active block headers still display after pagination
$(document).on('pageupdated', function(e, data) {
    console.log('pageupdated');
    var headers = $('#main-column-container').find('.block-header');
    if ($('#details-btn').hasClass('active')) {
        headers.removeClass('d-none');