assets/themes/j1/adapter/js/dropdowns.js in j1-template-2023.2.7 vs assets/themes/j1/adapter/js/dropdowns.js in j1-template-2023.3.0
- old
+ new
@@ -132,11 +132,13 @@
var dependencies_met_j1_finished = setInterval(function() {
var pageState = $('#no_flicker').css("display");
var pageVisible = (pageState == 'block') ? true : false;
var atticFinished = (j1.adapter.attic.getState() == 'finished') ? true: false;
- if (j1.getState() == 'finished' && pageVisible && atticFinished) {
+ if (j1.getState() == 'finished' && pageVisible) {
+// if (j1.getState() == 'finished' && pageVisible && atticFinished) {
+
var elms = document.querySelectorAll('.dropdowns');
// -------------------------------------------------------------------
// dropdowns initializer
// -------------------------------------------------------------------
@@ -203,10 +205,10 @@
_this.setState('finished');
logger.debug('\n' + 'state: ' + _this.getState());
clearInterval(dependencies_met_j1_finished);
} // END dependencies_met_j1_finished
- }, 25);
+ }, 10);
}, // END init
// -------------------------------------------------------------------------
// cbOnClick)