From e4e744eb6d20d6ca3dad9e8b6ec1d597986d6ddb Mon Sep 17 00:00:00 2001 From: ivanviduka Date: Wed, 18 Sep 2024 13:13:07 +0200 Subject: [PATCH] Trigger init of edge modules if tab is open by default, not only on click event --- view/adminhtml/web/js/init.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/view/adminhtml/web/js/init.js b/view/adminhtml/web/js/init.js index 5e7e6473..e2955e2c 100644 --- a/view/adminhtml/web/js/init.js +++ b/view/adminhtml/web/js/init.js @@ -11,6 +11,7 @@ define([ let active_version = ''; let next_version = ''; let fastlyFieldset = $('#system_full_page_cache_fastly'); + let fastlyEdgeModulesTab = $('#system_full_page_cache_fastly_edge_modules'); let isAlreadyConfigured = true; let serviceStatus = false; @@ -35,6 +36,10 @@ define([ } }); + if (fastlyEdgeModulesTab.is(':visible')) { + modlyInit(); + } + $('#system_full_page_cache_fastly_edge_modules-head').one('click', function () { modlyInit(); });