Skip to content

Commit

Permalink
#1052 - fixing cookie message issue
Browse files Browse the repository at this point in the history
  • Loading branch information
teiling88 committed May 27, 2017
1 parent ba4819a commit 29b2af4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion htdocs/templates2/ocstyle/header/cookie_notice.tpl
Expand Up @@ -79,7 +79,9 @@
var cookieNoticeCloseButton = document.getElementById('js--cookie-notice--close-button');
cookieNoticeCloseButton.onclick = function () {
document.cookie = ocCookieNoticeName+"=1; path=/";
var expiration = new Date();
expiration = new Date(expiration.getTime()+1000*60*60*24*365);
document.cookie = ocCookieNoticeName + '=1; path=/; expires=' + expiration.toGMTString() + ';';
bodyElement.classList.remove("cookie-notice--body");
return false;
};
Expand Down

0 comments on commit 29b2af4

Please sign in to comment.