chosen-rails 1.0.1 → 1.0.2

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: 91d427273663844aed9bb0c2cb0bcdc406bd6760
4
- data.tar.gz: cc52de001598e99c48fd1168288b878a5f1e80fb
3
+ metadata.gz: 7e07108378b17d32b42af5bc281ccfc930c88913
4
+ data.tar.gz: ce1d6adfbb7f2e7a1d8474adcdc72fd6ff21616e
5
5
  SHA512:
6
- metadata.gz: 011093ee7c6f88c5534488c0df597344f6941a21a8d3e089209ff62a070d9f956589125d4133d8fe3f15a90f30c63e9182e4ae12763a7bccf61ca09f24c86aad
7
- data.tar.gz: 4d8d00af862a4ce509939bf7971960af0e49a23389c4fb4516e90e6ec4049521e34aaa1e9ab0383486425cb25dab9d31720035498ca3c82d38da8a568ee362fc
6
+ metadata.gz: 9f4d95844828fce808bf9ddcf3ef589833e729418492cb851546f88449cb3535cd3b08d67d52e22ac3c1d80e3fb4a71cd9475cc9f0e39896c1e0528da903b352
7
+ data.tar.gz: 82f0e174fefd15a6f24de2360625a22583cedd210bc4b417b76c4008385b05d71f798afc1e3205ba5efe72b3b2f054b3538e67c2865a96fec422504d7f73a722
data/README.md CHANGED
@@ -12,14 +12,6 @@ Include `chosen-rails` in Gemefile
12
12
 
13
13
  gem 'chosen-rails'
14
14
 
15
- For Rails 4 project, it is required to add [compass-rails](https://github.com/Compass/compass-rails) gem explicitly.
16
-
17
- gem 'compass-rails', github: 'Compass/compass-rails'
18
-
19
- Or use the prerelease gem
20
-
21
- gem 'compass-rails', '~> 2.0.alpha.0'
22
-
23
15
  Then run `bundle install`
24
16
 
25
17
  ### Include chosen javascript assets
data/chosen-rails.gemspec CHANGED
@@ -18,7 +18,7 @@ Gem::Specification.new do |gem|
18
18
  gem.add_dependency 'railties', '>= 3.0'
19
19
  gem.add_dependency 'coffee-rails', '>= 3.2'
20
20
  gem.add_dependency 'sass-rails', '>= 3.2'
21
- gem.add_dependency 'compass-rails', '>= 1.0'
21
+ gem.add_dependency 'compass-rails', '>= 1.1.2'
22
22
 
23
23
  gem.add_development_dependency 'bundler', '>= 1.0'
24
24
  gem.add_development_dependency 'rails', '>= 3.0'
@@ -1,6 +1,6 @@
1
1
  module Chosen
2
2
  module Rails
3
- VERSION = '1.0.1'
3
+ VERSION = '1.0.2'
4
4
  CHOSEN_VERSION = '1.0.0'
5
5
  end
6
6
  end
@@ -59,7 +59,7 @@ class Chosen extends AbstractChosen
59
59
  else
60
60
  @search_container = @container.find('div.chosen-search').first()
61
61
  @selected_item = @container.find('.chosen-single').first()
62
-
62
+
63
63
  this.results_build()
64
64
  this.set_tab_index()
65
65
  this.set_label_behavior()
@@ -83,6 +83,7 @@ class Chosen extends AbstractChosen
83
83
  @form_field_jq.bind "chosen:updated.chosen", (evt) => this.results_update_field(evt); return
84
84
  @form_field_jq.bind "chosen:activate.chosen", (evt) => this.activate_field(evt); return
85
85
  @form_field_jq.bind "chosen:open.chosen", (evt) => this.container_mousedown(evt); return
86
+ @form_field_jq.bind "chosen:close.chosen", (evt) => this.input_blur(evt); return
86
87
 
87
88
  @search_field.bind 'blur.chosen', (evt) => this.input_blur(evt); return
88
89
  @search_field.bind 'keyup.chosen', (evt) => this.keyup_checker(evt); return
@@ -291,7 +292,7 @@ class Chosen extends AbstractChosen
291
292
  close_link = $('<a />', { class: 'search-choice-close', 'data-option-array-index': item.array_index })
292
293
  close_link.bind 'click.chosen', (evt) => this.choice_destroy_link_click(evt)
293
294
  choice.append close_link
294
-
295
+
295
296
  @search_container.before choice
296
297
 
297
298
  choice_destroy_link_click: (evt) ->
@@ -67,6 +67,7 @@ class @Chosen extends AbstractChosen
67
67
  @form_field.observe "chosen:updated", (evt) => this.results_update_field(evt)
68
68
  @form_field.observe "chosen:activate", (evt) => this.activate_field(evt)
69
69
  @form_field.observe "chosen:open", (evt) => this.container_mousedown(evt)
70
+ @form_field.observe "chosen:close", (evt) => this.input_blur(evt)
70
71
 
71
72
  @search_field.observe "blur", (evt) => this.input_blur(evt)
72
73
  @search_field.observe "keyup", (evt) => this.keyup_checker(evt)
@@ -92,7 +93,7 @@ class @Chosen extends AbstractChosen
92
93
  @container.select(".search-choice-close").each (choice) ->
93
94
  choice.stopObserving()
94
95
  else
95
- @selected_item.stopObserving()
96
+ @selected_item.stopObserving()
96
97
 
97
98
  if @search_field.tabIndex
98
99
  @form_field.tabIndex = @search_field.tabIndex
@@ -330,7 +331,7 @@ class @Chosen extends AbstractChosen
330
331
  high.removeClassName("active-result")
331
332
  else
332
333
  this.reset_single_select_options()
333
-
334
+
334
335
  high.addClassName("result-selected")
335
336
 
336
337
  item = @results_data[ high.getAttribute("data-option-array-index") ]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chosen-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tse-Ching Ho
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-10-10 00:00:00.000000000 Z
11
+ date: 2013-12-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
@@ -58,14 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - '>='
60
60
  - !ruby/object:Gem::Version
61
- version: '1.0'
61
+ version: 1.1.2
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - '>='
67
67
  - !ruby/object:Gem::Version
68
- version: '1.0'
68
+ version: 1.1.2
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: bundler
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -157,8 +157,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
157
157
  version: '0'
158
158
  requirements: []
159
159
  rubyforge_project:
160
- rubygems_version: 2.0.3
160
+ rubygems_version: 2.0.6
161
161
  signing_key:
162
162
  specification_version: 4
163
163
  summary: Integrate Chosen javascript library with Rails asset pipeline
164
164
  test_files: []
165
+ has_rdoc: