Commit 10b08c7f authored by Sven Berg Ryen's avatar Sven Berg Ryen
Browse files

Issue #3311109 by svenryen, Youcanlearnit: Not checked by default

parent 88c5d1e0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -687,7 +687,7 @@
  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 (Drupal.eu_cookie_compliance.getCurrentStatus() !== null || Drupal.eu_cookie_compliance.getCurrentStatus() === 0 || Drupal.eu_cookie_compliance.getCurrentStatus() === null) {
    if (Drupal.eu_cookie_compliance.getCurrentStatus() !== null || Drupal.eu_cookie_compliance.getCurrentStatus() === 0) {
      $("#eu-cookie-compliance-categories input:checkbox").not(":disabled").attr("checked", false);
    }
    // Check the appropriate checkboxes.
+1 −1

File changed.

Preview size limit exceeded, changes collapsed.