Commit 708e004c authored by Sven Berg Ryen's avatar Sven Berg Ryen
Browse files

Issue #3310983 by svenryen: D7. Regression: Reject all button doesn't work

parent fe75e194
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
@@ -687,8 +687,8 @@
  Drupal.eu_cookie_compliance.setPreferenceCheckboxes = function (categories) {
    // Unset all categories to prevent a problem where the checkboxes with a
    // default state set would always show up as checked.
    if ((categories.length && Drupal.eu_cookie_compliance.getCurrentStatus() !== null) || Drupal.eu_cookie_compliance.getCurrentStatus() === 0 || Drupal.eu_cookie_compliance.getCurrentStatus() === null) {
      $("#eu-cookie-compliance-categories input:checkbox").removeAttr("checked");
    if (Drupal.eu_cookie_compliance.getCurrentStatus() !== null || Drupal.eu_cookie_compliance.getCurrentStatus() === 0 || Drupal.eu_cookie_compliance.getCurrentStatus() === null) {
      $("#eu-cookie-compliance-categories input:checkbox").not(":disabled").attr("checked", false);
    }
    // Check the appropriate checkboxes.
    for (var i in categories) {