alchemy-ajax-form 1.2.0 → 1.2.1

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: ab4f8170326efc5737373e3c71789cd388572e4dc700f81350cf4b5aa98b388c
4
- data.tar.gz: d4c3306b11ad49214b189e5faf06b6dee0aabb92073d4d926a6760fcdbf430ae
3
+ metadata.gz: 36a4acac3687f6041a55b8efc1c4d445ca213185a2fe6ed368d0fa887d8b8f98
4
+ data.tar.gz: 2ef67b1ec3ca05197248fbfb2ee2e236dd9a133e0105cbf67dafef8a3c6be9be
5
5
  SHA512:
6
- metadata.gz: 872039ce8ef52c630b460bcb4b04ff3c2143f1e80b189491343bbc1d488df8c3ba7884fb97fa2c7926b315f48462703e80aece69fc42a15c0cc936a31488a36d
7
- data.tar.gz: 1aac09b7d730c12112ab35e27a68fdf20976e7c3e004a06e5cc57c0024a5947736e54f318d0a5079c6eb5c000de4b510e86b796cea1a77abf938611ba11cc0ec
6
+ metadata.gz: d5b4509ac463fa1a0f0262870b5f41bf8219c6fb1836296a57c4dab68020f472e83c59c97dba7f6dfed379a12087789ff1e82b48fd5f38be244a963ff11c1a3e
7
+ data.tar.gz: 23a6006f76f29528cd5583d4ae09acefbd81640fa049cef3a3f6b8ebe640ab44a84dc7ab525929b1a0213ec7062e831ee6cec90ff9beae12b8b353c7711a5155
@@ -29,7 +29,7 @@
29
29
 
30
30
  $.each(errors, function (name, value) {
31
31
 
32
- var input = $(form).find("*:not([type='hidden'])[name*='" + name + "']")
32
+ var input = $(form).find("*:not([type='hidden'])[name*='[" + name + "]']")
33
33
 
34
34
 
35
35
  $(input).addClass("invalid");
@@ -139,7 +139,7 @@
139
139
 
140
140
  var widget_id = grecaptcha.render(container_div[0], {
141
141
  'sitekey': '<%= Recaptcha.configuration.site_key! %>',
142
- 'badge': 'inline',
142
+ 'badge': '<%= Alchemy::Ajax::Form.recaptcha_badge %>',
143
143
  'size': 'invisible',
144
144
  'callback': function () {
145
145
  submit_function(form, method, action);
@@ -1,7 +1,7 @@
1
1
  module Alchemy
2
2
  module Ajax
3
3
  module Form
4
- VERSION = '1.2.0'
4
+ VERSION = '1.2.1'
5
5
  end
6
6
  end
7
7
  end
@@ -10,8 +10,10 @@ module Alchemy
10
10
  module Ajax
11
11
  module Form
12
12
  # Your code goes here...
13
- mattr_accessor :enable_mjml
13
+ mattr_accessor :enable_mjml, :recaptcha_badge
14
14
  @@enable_mjml = true
15
+ @@recaptcha_badge = 'inline'
16
+
15
17
 
16
18
  end
17
19
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: alchemy-ajax-form
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alessandro Baccanelli
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-06-26 00:00:00.000000000 Z
11
+ date: 2022-02-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -180,7 +180,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
180
180
  - !ruby/object:Gem::Version
181
181
  version: '0'
182
182
  requirements: []
183
- rubygems_version: 3.0.3
183
+ rubygems_version: 3.0.8
184
184
  signing_key:
185
185
  specification_version: 4
186
186
  summary: Structure to implement the forms using ajax and management in the backend