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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0dd149d55bbd40eebbac6303a5353554d3b23df4
4
- data.tar.gz: ecf6c4e5559888e329feaf89a0832568bed6e552
3
+ metadata.gz: 9f2009c0971f71fc66a161b7cdb31c09c223fbc7
4
+ data.tar.gz: 1dc7c9846010293152a293e012a70260ec0c617d
5
5
  SHA512:
6
- metadata.gz: 5fe84a1622e773a9b1c5aff4403ff7ac2461115a54389dc5eaba64441ec93682e324e29f47c89bf30d40e4088315bdf5fa7968b96476157825fe674fd380b410
7
- data.tar.gz: f26dff0858854c93b6db2ccf567aeccb70344e940e7a6bfcda8f5c9f10c406282904f77df51b6e6d68b9ddeaf6081012cc093f8f5ada681b30c8b28b494c380b
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('.dropdown_toggle_button')
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
- $(".dropdown_rich").dropdownSelectInput()
38
+ $('[data-dropdown-select]').dropdownSelectInput()
@@ -1,14 +1,3 @@
1
- .dropdown_rich {
2
- .dropdown_toggle_button {
3
- width: 240px;
4
- }
5
-
6
- // Support for AutoSubmitter
7
- .as_indicator {
8
- right: -28px;
9
- }
10
- }
11
-
12
1
  .dropdown_menu_rich {
13
2
  width: 22rem;
14
3
  li {
@@ -22,9 +22,9 @@ class DropdownSelectInput < SimpleForm::Inputs::CollectionInput
22
22
  )
23
23
  end
24
24
 
25
- content_tag(:span, class: 'dropdown dropdown_rich') do
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(:a, class: 'dropdown_toggle_button', 'data-toggle' => 'dropdown') { selected_option[0] } +
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|
@@ -1,5 +1,5 @@
1
1
  module SimpleForm
2
2
  module DropdownSelect
3
- VERSION = "0.1.4"
3
+ VERSION = "0.2.0"
4
4
  end
5
5
  end
@@ -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.1.4
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-08 00:00:00.000000000 Z
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