diff --git a/CHANGELOG.md b/CHANGELOG.md index 4564d41198dc776bb601a617743a09e84262b2ad..495916582b86ce3ba29fd33466869ed1a19aeddc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -69,6 +69,9 @@ Downgraded [Drush] in require-dev in composer.json from ~9 to 8.4.15 only for development and automated functional testing. +* Issue [#2921383](https://www.drupal.org/node/2921383): + Changed Varbase after install Tour Welcome Modal message + with window onload. * Issue [#2921031](https://www.drupal.org/node/2921031): Varbase 8.4.11: Updated [CHANGELOG.md, UPDATE.md] files and filtered the code for Drupal 8 Coding Standard diff --git a/modules/varbase_features/varbase_tour/templates/welcome-modal.html.twig b/modules/varbase_features/varbase_tour/templates/welcome-modal.html.twig index e762b1fc107b340d645bbf1b1bd4f2ceda9538f6..2162157c27306bd94731af28c625d64df360dc99 100644 --- a/modules/varbase_features/varbase_tour/templates/welcome-modal.html.twig +++ b/modules/varbase_features/varbase_tour/templates/welcome-modal.html.twig @@ -167,19 +167,22 @@ </div> </div> <script type="text/javascript"> - (function ($, _, Drupal, drupalSettings) { - "use strict"; - Drupal.behaviors.varbaseTourWelcomeModal = { - attach: function (context) { - $('#welcome-modal').modal({ - backdrop: 'static', - keyboard: false - }); + window.onload = function () { + (function ($, _, Drupal, drupalSettings) { + "use strict"; - $('#welcome-modal').on('hidden.bs.modal', function (e) { - window.location.href= "?tour=1&welcome=done"; - }); - } - }; - })(window.jQuery, window._, window.Drupal, window.drupalSettings); + Drupal.behaviors.varbaseTourWelcomeModal = { + attach: function (context) { + $('#welcome-modal').modal({ + backdrop: 'static', + keyboard: false + }); + + $('#welcome-modal').on('hidden.bs.modal', function (e) { + window.location.href= "?tour=1&welcome=done"; + }); + } + }; + })(window.jQuery, window._, window.Drupal, window.drupalSettings); + } </script>