activeadmin_selectize 0.1.2 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7e2093aedb2e382b18c8e1af2d8efc96a2a69f37
4
- data.tar.gz: b378a94c0b8ca17917b489cb5ce764498a934de1
3
+ metadata.gz: 67f51638f236de90ef8fafc38b0bbe0ed8b9597c
4
+ data.tar.gz: 14f578d393f4889cf25c0ffdf096163899337d65
5
5
  SHA512:
6
- metadata.gz: 1f450b2c81f547de8bc6cce1af359e21a9d42d667daed84eca835ae2054e139e389dc451e93d520e2fad79eb81b1e035c19c2f576aee6c994592df973d8a4082
7
- data.tar.gz: b1e182ad2dc3c851cc39330dff7dca083f3d08c9ff12f761adbff3ec001356fc3425a9b00fe227fc01ed17951196650f30cee60c71f500b506ca8a1378e33790
6
+ metadata.gz: 7eff3c556c2db4eee3e6e294ef0a4513656ad8ac4226193c4b694857f79a93a1f50cf7feb67a06f9c6bab468a60fdc4f8a039a885ad180cea24669d9ae1d6747
7
+ data.tar.gz: 72f6eaf2a6d0c7626915ee6116df4b8c39073b2c04ffed195a082be1225954a6b48c068183f6d43b766416b249635492053ac081b10585cb02cc098c587cd49d
data/README.md CHANGED
@@ -60,7 +60,7 @@ Pass the required options using `input_html`.
60
60
 
61
61
  Alternative syntax:
62
62
 
63
- - **data-options**: overrides Selectize options - example: `'data-options': '{"highlight":true,"plugins":[]}'`
63
+ - **data-opts**: overrides Selectize options - example: `'data-opts': '{"highlight":true,"plugins":[]}'`
64
64
 
65
65
  ## Contributors
66
66
 
@@ -14,7 +14,7 @@ $(document).ready( function() {
14
14
  valueField: field_value
15
15
  };
16
16
 
17
- if (!$(this).data('options') ) {
17
+ if (!$(this).data('opts') ) {
18
18
  $.each( this.attributes, function( i, attr ) {
19
19
  if( attr.name.startsWith( 'data-opt-' ) ) {
20
20
  var name = attr.name.substr( 9 );
@@ -23,7 +23,7 @@ $(document).ready( function() {
23
23
  });
24
24
  }
25
25
  else {
26
- opts = $.extend({}, opts, $(this).data('options'));
26
+ opts = $.extend({}, opts, $(this).data('opts'));
27
27
  }
28
28
 
29
29
  opts['load'] = function( query, callback ) {
@@ -1,5 +1,5 @@
1
1
  module ActiveAdmin
2
2
  module Selectize
3
- VERSION = '0.1.2'
3
+ VERSION = '0.1.3'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activeadmin_selectize
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mattia Roccoberton