Commit b4f4c18c authored by Michael Zetterberg fd. Lopez's avatar Michael Zetterberg fd. Lopez Committed by Sven Berg Ryen
Browse files

Issue #3272556 by Michael Zetterberg fd. Lopez, svenryen: Body class not added anymore

parent 216f3ebc
Loading
Loading
Loading
Loading
+2 −2
Changes for js/eu_cookie_compliance.js: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -23,7 +23,7 @@
    attach: function (context) {
      if (typeof drupalSettings.eu_cookie_compliance !== 'undefined') {
        const elements = once('eu-cookie-compliance', drupalSettings.eu_cookie_compliance.containing_element, context);
        elements.forEach(function () {
        elements.forEach(function (element) {

          // Initialize internal variables.
          _euccCurrentStatus = self.getCurrentStatus();
@@ -58,7 +58,7 @@
          else {
            Drupal.eu_cookie_compliance.execute();
          }
          $(this).addClass('eu-cookie-compliance-status-' + Drupal.eu_cookie_compliance.getCurrentStatus());
          $(element).addClass('eu-cookie-compliance-status-' + Drupal.eu_cookie_compliance.getCurrentStatus());
        });
      }
    },