Hi,
Great module, does what it says on the tin except when you click on any other link on the page it seems to set the cookie to accepted. Not sure if I'm incorrect in understanding how its suppose to behave but I assume by clicking on the "Yes I agree" button, only then will the cookie be accepted?
I found in eu_cookie_compliance.js line 18:
$('a, input[type=submit]').bind('click.eu_cookie_compliance', function(){
Is the culprit where clicking any link on the page sets the cookie. By changing that line of code to:
$('input[type=submit]').bind('click.eu_cookie_compliance', function(){
It behaved as I expected.
This is the first time I've ever reported a bug here so apologies if this post is a bit rough around the edges. Not sure what happens next as I've made the code changes locally and I'm surprised no body else has picked up on this.
Steve
Comments
Comment #1
Miszel commentedHi Steve,
Thanks for reporting however this is not a bug but a feature as per description on the module page.
Iine 18 is exucuted under a condition:
This feature can be switched off on the admin page by unchecking the 'Consent by clicking' checkbox.
Marcin
Comment #2
stevecheng commentedHi Marcin,
Thanks for the reply, sorry I missed that on the description page.
Steve
Comment #3
borys commentedHi Marcin,
But it looks like this feature is missing for Drupal 7 version, can you add there as well?
Thanks!
Comment #4
Miszel commentedYes, this should be forward ported. Changed the title to better reflect the problem.
Comment #5
Miszel commentedAnd now commitetd to 7.x-1.x. If you could test it and confirm that it works, I will make a release.
Comment #6
borys commentedI did a quick test, and I can confirm that it works as expected.
Marcin, thanks a lot for very quick response and fix!
Comment #7
Miszel commentedThank you both for bringing that up. It is now in 7.x-1.10.