assets/themes/j1/adapter/js/fab.js in j1-template-2023.2.3 vs assets/themes/j1/adapter/js/fab.js in j1-template-2023.2.4

- old
+ new

@@ -183,12 +183,14 @@ // --------------------------------------------------------------------- // Initialize FAB button // --------------------------------------------------------------------- var dependencies_met_fab_initialized = setInterval (function () { - var pageState = $('#no_flicker').css("display"); - var pageVisible = (pageState == 'block') ? true: false; - if (j1.xhrDOMState['#' + fabOptions.xhr_container_id] == 'success' && j1.getState() == 'finished' && pageVisible) { + var pageState = $('#no_flicker').css("display"); + var pageVisible = (pageState == 'block') ? true: false; + var atticFinished = (j1.adapter.attic.getState() == 'finished') ? true: false; + + if (j1.xhrDOMState['#' + fabOptions.xhr_container_id] == 'success' && j1.getState() == 'finished' && pageVisible && atticFinished ) { _this.setState('loaded'); logger.info('\n' + 'set module state to: ' + _this.getState()); logger.info('\n' + 'HTML data for FAB: ' + _this.getState()); // _this.scrollSpy(fabOptions);