effective_form_inputs 0.7.6 → 0.7.7

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: 956155606d7d1da40fcca46e7424a36477b3829b
4
- data.tar.gz: 6b6ecf49a907ba2803120cd4624b560f17706e3f
3
+ metadata.gz: 1d7ea053ad61d80125b2ae8dbe2eae58e892c1ab
4
+ data.tar.gz: 574f3f7c737e4bee7a7e79d4877e5ffa32eadf8d
5
5
  SHA512:
6
- metadata.gz: fec09f2fffabc7b3d827ab26d72ad5f3b81b772f5e815ac0671b5fe094a6ba3e1e45f86774f96cf221fedd8fad0c7431e9f49066a6610ffa73e0509aa884b3d2
7
- data.tar.gz: dc8e1de8a5b8391d89f07b66b16db57e7f645eed9d59a2f5eafda11a44e2beea2418b8fbb2f1e5e51a2ce3c2790f20b5f3a96ffc690a0028832fb72683dc2061
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
@@ -1,3 +1,3 @@
1
1
  module EffectiveFormInputs
2
- VERSION = '0.7.6'.freeze
2
+ VERSION = '0.7.7'.freeze
3
3
  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.6
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-09-21 00:00:00.000000000 Z
11
+ date: 2015-10-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails