gdpr 1.2.3 → 1.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/gdpr/cookie_consent.js +5 -4
- data/lib/gdpr/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f36f71c4e607ab25ee04cd4d58b1644406680f3e9969f91665a631378f1797a8
|
4
|
+
data.tar.gz: c6d28740780aa71cab8fb1260beba2537dbe4b7287f3a56a45d81c83ee8455ce
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 27ba5e626604a2729ae8865b636f69e979e7289b7225445b9de3671d1605ee9ac3ab9e2b62d00b476cfd1e761eb6bb8297c1e0f84dfc392947859b4092d6abdd
|
7
|
+
data.tar.gz: 4b1635f2ccdf9bbbcd263cfa931ee00d232138082d171ee1b7c32a86cf23b8bc9a2dd541f03855f13f14b604105e87ecb337c2bac7f052a95ba696fc99b2ca7b
|
@@ -7,14 +7,15 @@ window.cookieConsent = {
|
|
7
7
|
this.cookieBanner = document.querySelector('.js-gdpr__cookie_consent');
|
8
8
|
this.cookieConsentOkButton = document.querySelector('.js-gdpr__cookie_consent__buttons__ok');
|
9
9
|
this.cookieConsentKoButton = document.querySelector('.js-gdpr__cookie_consent__buttons__ko');
|
10
|
-
this.
|
10
|
+
this.displayAgainButtons = document.querySelectorAll('.js-gdpr__cookie_consent__display_again');
|
11
11
|
this.bindActions();
|
12
12
|
this.manageBannerDisplay();
|
13
13
|
},
|
14
14
|
|
15
15
|
bindActions: function () {
|
16
16
|
'use strict';
|
17
|
-
var that = this
|
17
|
+
var that = this,
|
18
|
+
i;
|
18
19
|
if (this.cookieConsentOkButton) {
|
19
20
|
this.cookieConsentOkButton.addEventListener('click', function () {
|
20
21
|
that.setCookieAcceptance(true);
|
@@ -25,8 +26,8 @@ window.cookieConsent = {
|
|
25
26
|
that.setCookieAcceptance(false);
|
26
27
|
});
|
27
28
|
}
|
28
|
-
|
29
|
-
this.
|
29
|
+
for (i = 0; i < this.displayAgainButtons.length; i += 1) {
|
30
|
+
this.displayAgainButtons[i].addEventListener('click', function (e) {
|
30
31
|
e.preventDefault();
|
31
32
|
e.stopPropagation();
|
32
33
|
that.displayBanner(true);
|
data/lib/gdpr/version.rb
CHANGED
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gdpr
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Arnaud Levy
|
8
8
|
- Pierre-André Boissinot
|
9
|
-
autorequire:
|
9
|
+
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2022-
|
12
|
+
date: 2022-11-08 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -82,7 +82,7 @@ homepage: https://github.com/lespoupeesrusses/gdpr
|
|
82
82
|
licenses:
|
83
83
|
- MIT
|
84
84
|
metadata: {}
|
85
|
-
post_install_message:
|
85
|
+
post_install_message:
|
86
86
|
rdoc_options: []
|
87
87
|
require_paths:
|
88
88
|
- lib
|
@@ -97,8 +97,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
97
97
|
- !ruby/object:Gem::Version
|
98
98
|
version: '0'
|
99
99
|
requirements: []
|
100
|
-
rubygems_version: 3.1.
|
101
|
-
signing_key:
|
100
|
+
rubygems_version: 3.1.4
|
101
|
+
signing_key:
|
102
102
|
specification_version: 4
|
103
103
|
summary: Helps getting your Rails app GDPR compliant
|
104
104
|
test_files: []
|