Skip to content

Commit

Permalink
NGSTACK-833 - cookiepolicyshow var renamed
Browse files Browse the repository at this point in the history
  • Loading branch information
mlukac committed Jan 24, 2025
1 parent 2d59474 commit 2348b0a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion assets/js/components-noncritical.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const componentConfiguration = [
rotateArrowClass: 'rotate-arrow',
shownClass: 'shown',
cookieModal: '.ng-cc-modal',
cookiePolicyShow: '.ng-cc-js-link-cookie-policy a',
cookiePolicyShowTrigger: '.ng-cc-js-link-cookie-policy a',
cookiePolicyHide: '.cookie-policy-hide',
cookiePolicyText: '.ng-cc-cookie-policy-text',
cookiePolicyShownClass: 'cookie-policy-shown',
Expand Down
4 changes: 2 additions & 2 deletions assets/js/components/CookieControl.component.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default class CookieControl {
this.optionalList = element.querySelector(options.optionalList);
this.optionalListToggle = element.querySelector(options.optionalListToggle);
this.cookieModal = element.querySelector(options.cookieModal);
this.cookiePolicyShow = element.querySelector(options.cookiePolicyShow);
this.cookiePolicyShowTrigger = element.querySelector(options.cookiePolicyShowTrigger);
this.cookiePolicyHide = element.querySelector(options.cookiePolicyHide);
this.cookiePolicyText = element.querySelector(options.cookiePolicyText);
this.cookiePolicyShownClass = options.cookiePolicyShownClass;
Expand All @@ -23,7 +23,7 @@ export default class CookieControl {
this.optionalSaveBtn.forEach((element) =>
element.addEventListener('click', CookieControl.handleConsentChange)
);
this.cookiePolicyShow.addEventListener('click', (e) => {
this.cookiePolicyShowTrigger.addEventListener('click', (e) => {
e.preventDefault();
this.cookieModal.classList.add(this.cookiePolicyShownClass);
document.querySelector('.ng-cc-cookie-policy-text').scrollTop = 0;
Expand Down

0 comments on commit 2348b0a

Please sign in to comment.