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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dba48ada0346cb73f5d71804c1228fa29476d38376548fa759e45e8f1e22bc79
4
- data.tar.gz: 194cf47027a7d51f3793d949bdcc9303e90e6b941b059db6f5d1fafd4a8a14a2
3
+ metadata.gz: f36f71c4e607ab25ee04cd4d58b1644406680f3e9969f91665a631378f1797a8
4
+ data.tar.gz: c6d28740780aa71cab8fb1260beba2537dbe4b7287f3a56a45d81c83ee8455ce
5
5
  SHA512:
6
- metadata.gz: cd2da8d6ff90ea060d4420b78d948f1cb06cf99bace44401bcb46a0bfffd7093b5babaa031b83850264f198b245d2459be5e17156f56a569b1c690b8add1026e
7
- data.tar.gz: f77b982f2f342845fe26babf6bc6ebf188d1599a721499049e9a9fa2b8499817a6e5cea42e0adf10f0281e306d6112c868d5993d474a386423b4e2a8684e21e1
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.displayAgain = document.querySelector('.js-gdpr__cookie_consent__display_again');
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
- if (this.displayAgain) {
29
- this.displayAgain.addEventListener('click', function (e) {
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
@@ -1,3 +1,3 @@
1
1
  module Gdpr
2
- VERSION = '1.2.3'
2
+ VERSION = '1.2.4'
3
3
  end
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.3
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-02-10 00:00:00.000000000 Z
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.6
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: []