effective_form_inputs 0.7.6 → 0.7.7
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1d7ea053ad61d80125b2ae8dbe2eae58e892c1ab
|
4
|
+
data.tar.gz: 574f3f7c737e4bee7a7e79d4877e5ffa32eadf8d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5d4ce0300d708fc835a219662bf320cc5955a37f91c9c11d0168133bf3ae1183c46dcbafef93eae6e83f7ab5e502ac2d6e6e3229cc183ba0fdea4972802a6f60
|
7
|
+
data.tar.gz: f635f168efdb974f48d38766a4522bca553d90e017207c7780f77cc26a1302b06da58970bb966d15924cf47cc19987b93130203d857960ca76ccd91724a5b943
|
@@ -15,7 +15,7 @@ $(document).on 'cocoon:after-insert', -> initialize()
|
|
15
15
|
$(document).on 'keydown', "input[type='text'].effective_price", (event) ->
|
16
16
|
allowed = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '-', ',', '.']
|
17
17
|
|
18
|
-
if event.key.length == 1 && event.metaKey == false && allowed.indexOf(event.key) == -1
|
18
|
+
if event.key && event.key.length == 1 && event.metaKey == false && allowed.indexOf(event.key) == -1
|
19
19
|
event.preventDefault()
|
20
20
|
|
21
21
|
|
@@ -146,12 +146,8 @@ module Inputs
|
|
146
146
|
# When we use options[:hide_disabled], we add the 'hide-disabled' class to both the container and the dropdown
|
147
147
|
if options[:hide_disabled]
|
148
148
|
js_options[:containerClass] = (arrayize_html_class_key(js_options[:containerClass]) + ['hide-disabled']).join(' ')
|
149
|
-
end
|
150
|
-
|
151
|
-
if options[:hide_disabled]
|
152
149
|
js_options[:dropdownClass] = (arrayize_html_class_key(js_options[:dropdownClass]) + ['hide-disabled']).join(' ')
|
153
150
|
end
|
154
|
-
|
155
151
|
end
|
156
152
|
end
|
157
153
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: effective_form_inputs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Code and Effect
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-10-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|