Commit 6627e11f authored by Sven Berg Ryen's avatar Sven Berg Ryen Committed by Sven Berg Ryen
Browse files

Issue #3310531 by svenryen: Regression: Reject all button doesn't work

parent 81d41361
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
@@ -802,10 +802,10 @@
  };

  Drupal.eu_cookie_compliance.setPreferenceCheckboxes = function (categories) {
    if ((categories.length && Drupal.eu_cookie_compliance.getCookieStatus() !== null) || Drupal.eu_cookie_compliance.getCookieStatus() === cookieValueDisagreed) {
    if (Drupal.eu_cookie_compliance.getCookieStatus() !== null || Drupal.eu_cookie_compliance.getCookieStatus() === cookieValueDisagreed) {
      // Unset all categories to prevent a problem where the checkboxes with a
      // default state set would always show up as checked.
      $("#eu-cookie-compliance-categories input:checkbox").removeAttr("checked");
      $("#eu-cookie-compliance-categories input:checkbox").not(":disabled").prop("checked", false);
    }
    // Check the appropriate checkboxes.
    for (var i in categories) {