activeadmin_select_many 0.3.2 → 0.3.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: ec8fcd1a933a81076b4e8a238e561875dc456303
4
- data.tar.gz: 7589efb9495414ffbde8634973bdc1c0dfc04259
3
+ metadata.gz: 803eb9cc01dbf1ae9baa62aca6143a2fd4f3bbeb
4
+ data.tar.gz: e24f251be408c8381b4d4c70cba8ecb5230464c3
5
5
  SHA512:
6
- metadata.gz: 5a9a7ea88ee6d42808b1d9a19e18513c60d5b315f1284b54731a51e67b4369d47feb7738420a435bec862193e21257377483ca10fd0323243b81564c994e4515
7
- data.tar.gz: 85aef3bcef4b92905054afa7f5dd4f96aa7f44fea894c965dd5157e0908fc198b9e0d1399c112e4a2973cc14cec94a7cfc49eaed6e49747598e1b3590bdede4a
6
+ metadata.gz: 15af5bf94a4a6cefe08ca45425e6f93a011272238d818ecf6e265b6cc04c84f1037dc8d93e911f57e7dc05c0d5ca70fc380e6a78736640c2cf89b03e77f3cf23
7
+ data.tar.gz: cf6fba412823f738a0ed7d1346cd636da1f2c00654d5a09b2c1ab50dbec1c87f76215479cf44a0c6ef28e3ca252733e00854f47d3119f91b44813ae08be7abd4
@@ -163,7 +163,7 @@ $(document).ready( function() {
163
163
  // --- select one -----------------------------------------------------------
164
164
  var onRemoteSelectOne = smDebounce( function( event ) {
165
165
  var search = $(this).val().trim();
166
- var select = $(this).next();
166
+ var select = $(this).closest( '.select_one' ).find( '[data-select="src"]' );;
167
167
  if( select.data( 'searching' ) != '1' && search && select.data( 'last-search' ) != search ) {
168
168
  select.data( 'searching', '1' );
169
169
  select.data( 'last-search', search );
@@ -1,5 +1,5 @@
1
1
  module ActiveAdmin
2
2
  module SelectMany
3
- VERSION = '0.3.2'
3
+ VERSION = '0.3.3'
4
4
  end
5
5
  end
@@ -11,8 +11,8 @@ module Formtastic
11
11
  hidden_input <<
12
12
  search_box_html <<
13
13
  template.content_tag( :span, '', class: 'empty' ) <<
14
- template.content_tag( :span, template.t( 'inputs.select_many.available' ), class: 'available' ) <<
15
- template.content_tag( :span, template.t( 'inputs.select_many.selected' ), class: 'selected' ) <<
14
+ template.content_tag( :span, ::I18n.t( 'inputs.select_many.available' ), class: 'available' ) <<
15
+ template.content_tag( :span, ::I18n.t( 'inputs.select_many.selected' ), class: 'selected' ) <<
16
16
  select_src_html <<
17
17
  buttons_html <<
18
18
  select_dst_html
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activeadmin_select_many
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mattia Roccoberton
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-10-23 00:00:00.000000000 Z
11
+ date: 2017-10-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activeadmin