protected_form 0.0.4 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cbb991da2f99fcd155f75db22fb8b5f7d7ac1f34
4
- data.tar.gz: b137e156dd439b9113c4271d48521c1c6ad41ad7
3
+ metadata.gz: 377c4fe7461cc4f5af17d41c64d6bafd42687242
4
+ data.tar.gz: 37a0145868ccecc7be071e0d5694584c7fbaa3a2
5
5
  SHA512:
6
- metadata.gz: d85e3d57e903a3e4cc1622f0cf3bd769d3bb4d1de5209b904501776463c52b21a3d5c58bb77961329e7f3ab02a7ef2def1427188a70b324b3f0f122cb011d617
7
- data.tar.gz: 4c55dd12960c0408cb2e4869a5d11b96a6c22ff62ea81866dd836120b3bf6511358889367bf1ad10a9ef291cd07a75589a414d8360f084d5a5a6653e400f4b3a
6
+ metadata.gz: 9f1628864fa6aa19fcba44687d23d5b47d918aff0aef68da9c1c938d5964ff37188351919df95cbb6a36a70f1b36736c914c9558a51a44f54a73aac195336b01
7
+ data.tar.gz: 1092b61f98c27829dd01c5e18c8ef263d73e706ad588ba19c75c1f1949c4f6d60dfb3ff141bf2f1e2b9334603a4e9fcb0082ad399e00e30891ebfe07c91c12e1
@@ -1,3 +1,3 @@
1
1
  module ProtectedForm
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
@@ -20,7 +20,7 @@
20
20
  });
21
21
  }
22
22
 
23
- //Form Submit
23
+ // Form Submit
24
24
  function sendProtectedForm() {
25
25
  // Looking for closest .js-protected-form block
26
26
  var container = this;
@@ -32,7 +32,7 @@
32
32
 
33
33
  // Change html structure: return content into form
34
34
  container.parentNode.insertBefore(form, container);
35
- form.firstChild.appendChild(container);
35
+ form.appendChild(container);
36
36
 
37
37
  // Fix for IE when using certain versions of pjax libraries and losing focus
38
38
  document.body.focus();
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: protected_form
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexandr Subbotin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-02-15 00:00:00.000000000 Z
11
+ date: 2016-03-16 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Simple anti-spam wrapper for `form_for` with javascript form submission
14
14
  with changing html structure of form.