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 +4 -4
- data/lib/protected_form/version.rb +1 -1
- data/vendor/assets/javascripts/protected_form.js +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 377c4fe7461cc4f5af17d41c64d6bafd42687242
|
|
4
|
+
data.tar.gz: 37a0145868ccecc7be071e0d5694584c7fbaa3a2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9f1628864fa6aa19fcba44687d23d5b47d918aff0aef68da9c1c938d5964ff37188351919df95cbb6a36a70f1b36736c914c9558a51a44f54a73aac195336b01
|
|
7
|
+
data.tar.gz: 1092b61f98c27829dd01c5e18c8ef263d73e706ad588ba19c75c1f1949c4f6d60dfb3ff141bf2f1e2b9334603a4e9fcb0082ad399e00e30891ebfe07c91c12e1
|
|
@@ -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.
|
|
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
|
+
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-
|
|
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.
|