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: 472e904d027a454a6c8030eaa4001dcb66bb1735
4
- data.tar.gz: 341be652819520a0548b3792448fe459180722b8
3
+ metadata.gz: b7336e56e18aa8c8a4fb93ff535072f64ac3dac0
4
+ data.tar.gz: bbb57483c734fbaa8a25c7fe2cf9269baccfe54d
5
5
  SHA512:
6
- metadata.gz: 35734f8091358c45068f4c58e6f364d384b97df8fecf0669b2f76294f9179316f4df2bc5e843ea0de062c2e48457995aeda97f9464be3e351b554e0a27a42f71
7
- data.tar.gz: 06b8163fef4a85f09cbf1deab300f93e870f9d79bfabe9ac0f76400860a2e4872f6e621cf94fbd1807069ae3393ea1787c4697ba280f59a426bbf3b73da05fe2
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 += "#{encodeURI(input.name)}=#{encodeURI(input.value)}&"
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
@@ -1,3 +1,3 @@
1
1
  module TurboGraft
2
- VERSION = '0.1.0'
2
+ VERSION = '0.1.1'
3
3
  end
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.0
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-03 00:00:00.000000000 Z
16
+ date: 2014-12-05 00:00:00.000000000 Z
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
19
19
  name: coffee-rails