turbograft 0.1.0 → 0.1.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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b7336e56e18aa8c8a4fb93ff535072f64ac3dac0
|
4
|
+
data.tar.gz: bbb57483c734fbaa8a25c7fe2cf9269baccfe54d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8dbe4c68b54a4ff8156b2d713bf751a2f0243115cd76b6f68fc56588cae161f78891a9956ec61f50670f6df11dacd2580db0d992f6031b4248495ae4de643262
|
7
|
+
data.tar.gz: 0f9a1dc630afc7350709a04b60f7c402e2698f3585441be6910f0bef949f47549dd659c1e3624181cb7325f7f107ab5e1e35aee3a41d53ce04c7910d16867757
|
@@ -71,6 +71,7 @@ TurboGraft.handlers.remoteFormHandler = (ev) ->
|
|
71
71
|
documentListenerForButtons = (eventType, handler, useCapture = false) ->
|
72
72
|
document.addEventListener eventType, (ev) ->
|
73
73
|
target = ev.target
|
74
|
+
return if !target
|
74
75
|
isNodeDisabled = nodeIsDisabled(target)
|
75
76
|
ev.preventDefault() if isNodeDisabled
|
76
77
|
return if !(target.nodeName == "A" || target.nodeName == "BUTTON") || isNodeDisabled
|
@@ -66,7 +66,7 @@ class TurboGraft.Remote
|
|
66
66
|
|
67
67
|
if inputEnabled && input.name
|
68
68
|
if (radioOrCheck && input.checked) || !radioOrCheck
|
69
|
-
formData += "#{
|
69
|
+
formData += "#{encodeURIComponent(input.name)}=#{encodeURIComponent(input.value)}&"
|
70
70
|
|
71
71
|
formData = formData.slice(0,-1) if formData.charAt(formData.length - 1) == "&"
|
72
72
|
formData
|
data/lib/turbograft/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: turbograft
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kristian Plettenberg-Dussault
|
@@ -13,7 +13,7 @@ authors:
|
|
13
13
|
autorequire:
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
|
-
date: 2014-12-
|
16
|
+
date: 2014-12-05 00:00:00.000000000 Z
|
17
17
|
dependencies:
|
18
18
|
- !ruby/object:Gem::Dependency
|
19
19
|
name: coffee-rails
|