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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 268d30da6304ed0bd8b5bf967bfdee1913d5a3c2
|
4
|
+
data.tar.gz: 8d64702580fc7745c49ebb40aad561c62d7acc9e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 554976266798236e1020ee6b87d9d0668247c45ce8626b18d14d7a8cf078e3d3226817a58181a6843bc48ec1abf6c48fcc8bbc8a9e187eeb4f1c65d5faf8ec4c
|
7
|
+
data.tar.gz: 507df17e8f2e762dcbc24a3850603cf3c1cbb2f85bf59b77b0150c03cc8c2e37682f92923798431483d8b5518f6d310519c2da706463944200a8a331b574281e
|
@@ -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
|
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
|
}
|
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.
|
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-
|
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
|