recordselect 3.9.0 → 3.9.1

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: e6c7101043cfa8f0fa7659ce03b1b153d26b0527
4
- data.tar.gz: 0352eb0ec52c9150d020eb9efa0c782c2f59361c
3
+ metadata.gz: 8699e5faa12c50de291e07e735d70ef1ea9a6a73
4
+ data.tar.gz: b97b4bf9f5380d6808269855df7a51f5733399d3
5
5
  SHA512:
6
- metadata.gz: cdf5a4471e15b6ca973cf1f758b5ba42cfc9fab82971cc0be924e94314d8a88e9ad3088c7251ade1b710d251d186798a4813d93a47e98aed5afb3c7b2e878ab8
7
- data.tar.gz: 080740867f2413d7612c6dae6d324dd6a9c85b14599688dba23e3570002a021424948b9091f0fad98f55b028e8b192bd917fc21f047436df1fd3a594480ccb5d
6
+ metadata.gz: f06cd88ea3637b05d545c0c08efdc908ec5324cf88bc487e8d07964f4f0836f1459f4fff33fce8a0a0835c4e521bf1ecb65a449ccd46f2e789221f021bdc9301
7
+ data.tar.gz: f38148405a5c8ffdcb3ef6ab63237a6a54e04e6293b6edca22c2267a481168809a32dee4b93fd28b9767b925a03df89ef26d3b26d58da273259c5b87527abf3e
@@ -6,3 +6,6 @@ record_select_id = record_select_id(controller)
6
6
  <%= render_record_select :partial => 'search', :locals => {:controller => controller, :record_select_id => record_select_id} %>
7
7
  <%= render_record_select :partial => 'list', :locals => {:controller => controller, :page => @page, :record_select_id => record_select_id} %>
8
8
  </div>
9
+ <%= javascript_tag do %>
10
+ <%= render :partial => 'highlight', :formats => [:js] %>
11
+ <% end %>
@@ -0,0 +1,3 @@
1
+ var item = $('.record-select-container .record:first');
2
+ var rs = item.closest('.record-select-container').data('recordselect');
3
+ if (rs) rs.highlight(item);
@@ -1 +1,2 @@
1
1
  RecordSelect.render_page('<%= record_select_id %>', '<%= escape_javascript(render_record_select(:partial => 'list', :locals => {:page => @page})) %>');
2
+ <%= render :partial => 'highlight', :formats => [:js] %>
@@ -2,7 +2,7 @@ module RecordSelect
2
2
  module Version
3
3
  MAJOR = 3
4
4
  MINOR = 9
5
- PATCH = 0
5
+ PATCH = 1
6
6
 
7
7
  STRING = [MAJOR, MINOR, PATCH].compact.join('.')
8
8
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: recordselect
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.9.0
4
+ version: 3.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sergio Cambra
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2017-12-12 00:00:00.000000000 Z
13
+ date: 2018-02-15 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: bundler
@@ -60,6 +60,7 @@ files:
60
60
  - app/assets/javascripts/record_select.js.erb
61
61
  - app/assets/stylesheets/record_select.css.scss
62
62
  - app/views/record_select/_browse.html.erb
63
+ - app/views/record_select/_highlight.js.erb
63
64
  - app/views/record_select/_list.html.erb
64
65
  - app/views/record_select/_search.html.erb
65
66
  - app/views/record_select/browse.js.erb