effective_form_inputs 0.6.2 → 0.6.3

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: a1427216fa5d8b8644610448626b6516ef3032cc
4
- data.tar.gz: 6b3d905b747e633efc2f2845bd89780fdb52a85c
3
+ metadata.gz: 268d30da6304ed0bd8b5bf967bfdee1913d5a3c2
4
+ data.tar.gz: 8d64702580fc7745c49ebb40aad561c62d7acc9e
5
5
  SHA512:
6
- metadata.gz: 37230c84b459df6757d427de23b41f2483907354330c195a6d77f9b22e9816f1108c4a339e544c7e9bbced401ac90b0085c7fa05b682c38c815ba3d50d3e1cee
7
- data.tar.gz: f1cfaceaa7fcbac7a2e92d1bf032c10c093416594fc98d6290ea00e7d21a96294019bb28feb16f1c388b5c29084fece9d44477b893883de415dad37b4278552f
6
+ metadata.gz: 554976266798236e1020ee6b87d9d0668247c45ce8626b18d14d7a8cf078e3d3226817a58181a6843bc48ec1abf6c48fcc8bbc8a9e187eeb4f1c65d5faf8ec4c
7
+ data.tar.gz: 507df17e8f2e762dcbc24a3850603cf3c1cbb2f85bf59b77b0150c03cc8c2e37682f92923798431483d8b5518f6d310519c2da706463944200a8a331b574281e
@@ -1,2 +1,3 @@
1
1
  //= require ./select2
2
+ //= require ./overrides
2
3
  //= require ./initialize
@@ -0,0 +1,11 @@
1
+ # Disable dropdown opening when clicking the clear button
2
+ # http://stackoverflow.com/questions/29618382/disable-dropdown-opening-on-select2-clear
3
+
4
+ $(document).on 'select2:unselecting', (event) -> $(event.target).data('state', 'unselected')
5
+
6
+ $(document).on 'select2:open', (event) ->
7
+ obj = $(event.target)
8
+
9
+ if obj.data('state') == 'unselected'
10
+ obj.removeData('state')
11
+ setTimeout ( => obj.select2('close') ), 0
@@ -1,6 +1,12 @@
1
1
  // These are overrides from the bootstrap-theme
2
2
 
3
- .select2-container--bootstrap .select2-selection--single span.select2-selection__clear {
3
+ .select2-container .select2-selection--single .select2-selection__rendered {
4
+ margin-right: 5px;
5
+ }
6
+
7
+ .select2-container--bootstrap .select2-selection--single .select2-selection__clear {
8
+ float: none;
9
+ position: absolute;
10
+ right: 10px;
4
11
  margin-top: -1px;
5
- margin-right: 0px;
6
12
  }
@@ -1,3 +1,3 @@
1
1
  module EffectiveFormInputs
2
- VERSION = '0.6.2'.freeze
2
+ VERSION = '0.6.3'.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.6.2
4
+ version: 0.6.3
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-06-22 00:00:00.000000000 Z
11
+ date: 2015-08-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -57,6 +57,7 @@ files:
57
57
  - app/assets/javascripts/effective_form_inputs.js
58
58
  - app/assets/javascripts/effective_select/initialize.js.coffee
59
59
  - app/assets/javascripts/effective_select/input.js
60
+ - app/assets/javascripts/effective_select/overrides.js.coffee
60
61
  - app/assets/javascripts/effective_select/select2.js
61
62
  - app/assets/javascripts/effective_tel/initialize.js.coffee
62
63
  - app/assets/javascripts/effective_tel/input.js