simple_form-dropdown_select 0.1.4 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/simple_form/dropdown_select.js.coffee +2 -2
- data/app/assets/stylesheets/simple_form/dropdown_select.scss +0 -11
- data/app/inputs/dropdown_select_input.rb +2 -2
- data/lib/simple_form/dropdown_select/version.rb +1 -1
- data/simple_form-dropdown_select.gemspec +1 -0
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9f2009c0971f71fc66a161b7cdb31c09c223fbc7
|
4
|
+
data.tar.gz: 1dc7c9846010293152a293e012a70260ec0c617d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e8810dd8bd9ea08eb1dd47b85ca42480cb114721f91f3a0dc2f8c117b84f1c4ad227d442d725d14598c078fa049070d499b69687c79c8637108352d4f1926442
|
7
|
+
data.tar.gz: b463a2a14e3b37770728f506c36d659c0f7662d6aac6d8ba295c2c74b73a3f8b7a2ccc4f3cccc321083784cb16aef1869eba678b043b1328811aa24039eb77a1
|
@@ -7,7 +7,7 @@
|
|
7
7
|
@options = $.extend({}, @defaults, options)
|
8
8
|
@$el = $el
|
9
9
|
@$input = $el.find('input')
|
10
|
-
@$toggle = $el.find('
|
10
|
+
@$toggle = $el.find('[data-toggle=dropdown]')
|
11
11
|
|
12
12
|
@$el.on 'click', 'a[data-value]', (e) =>
|
13
13
|
$a = $(e.currentTarget)
|
@@ -35,4 +35,4 @@
|
|
35
35
|
) window.jQuery, window
|
36
36
|
|
37
37
|
$ ->
|
38
|
-
$(
|
38
|
+
$('[data-dropdown-select]').dropdownSelectInput()
|
@@ -22,9 +22,9 @@ class DropdownSelectInput < SimpleForm::Inputs::CollectionInput
|
|
22
22
|
)
|
23
23
|
end
|
24
24
|
|
25
|
-
content_tag(:
|
25
|
+
content_tag(:div, class: 'styled_select_wrapper', 'data-dropdown-select' => true) do
|
26
26
|
@builder.hidden_field(attribute_name, input_html_options) +
|
27
|
-
content_tag(:
|
27
|
+
content_tag(:div, class: 'styled_select', 'data-toggle' => 'dropdown') { selected_option[0] } +
|
28
28
|
content_tag(:div, class: 'dropdown_menu dropdown_menu_rich') {
|
29
29
|
content_tag(:ul, class: 'dropdown_body') {
|
30
30
|
collection.map do |x|
|
@@ -22,6 +22,7 @@ Gem::Specification.new do |s|
|
|
22
22
|
s.homepage = 'http://github.com/dobtco/simple_form-dropdown_select_input'
|
23
23
|
|
24
24
|
s.add_dependency 'coffee-script'
|
25
|
+
s.add_dependency 'dvl-core'
|
25
26
|
s.add_dependency 'rspec-rails'
|
26
27
|
s.add_dependency 'simple_form'
|
27
28
|
s.add_dependency 'sass'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simple_form-dropdown_select
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adam Becker
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-01-
|
11
|
+
date: 2015-01-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: coffee-script
|
@@ -24,6 +24,20 @@ dependencies:
|
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: dvl-core
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
27
41
|
- !ruby/object:Gem::Dependency
|
28
42
|
name: rspec-rails
|
29
43
|
requirement: !ruby/object:Gem::Requirement
|