Skip to content
This repository has been archived by the owner on Apr 23, 2024. It is now read-only.

Commit

Permalink
Merge branch 'master' into replace-htags-with-ptags
Browse files Browse the repository at this point in the history
  • Loading branch information
lykciv authored Mar 10, 2022
2 parents a400ca5 + 038255f commit ba24296
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

## [2.0.4]
* Replace H3 tags with P tags
* Update toggle slider status after visitors accept all cookies.

## [2.0.3]
* Replace H1 tags with H3 tags
Expand Down
2 changes: 2 additions & 0 deletions view/frontend/web/js/model/cookie.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ define([
$.each(systemNames, function (index, value) {
var sysName = 'cg_' + value;
data[sysName] = 1;
var checkboxSelector = '.phpro-cookie-consent-modal .consent-tab-content.' + value + ' .cookie-toggle input';
$(checkboxSelector).prop('checked', data[sysName]);
});
data['expire'] = expiration;
data['secure'] = secure;
Expand Down

0 comments on commit ba24296

Please sign in to comment.