selectivity-rails 0.0.4 → 0.0.5

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: d55b130f5ccc4b4b46143ad0eaf3e4a91f925a91
4
- data.tar.gz: 97671a18859e10e389ed69b381b78e9545f6cd71
3
+ metadata.gz: 32efd7fbeffcd0334921a2f616b3cf50719beab5
4
+ data.tar.gz: 116fb7836cac8ec002c5db9647b632c0033410ff
5
5
  SHA512:
6
- metadata.gz: b7ede2a49f84d147f0777b0a69c3a43b93d76f868a60ce94ee7d4e04f515cfc2cb4db73e0c0fde60c5937a493536d440d7d2721fc4f7f502b7c8f34fc4c82fc2
7
- data.tar.gz: c804cba7768ba36207328678d78d098f3ccb664cbbefc8fd43486c6d8726254fe413ca454d1b3bf1884d2badf6757a66981ae14441c756bbae6e5f887ed30017
6
+ metadata.gz: 68ebd13b69f2b0f996069cb4402d2b66ae927f44b8150d62141ef7c2ef58ea8fee9552fb1726d0f0f31c0a9584544a1346a8e505aefe3a849c189fb2d1c716a1
7
+ data.tar.gz: b8c35893f18770113f4e131cac0b4eb4ca38e13fee35c8b457dbd9244e1d3f4a56c2465317df6f03338eb4a50842852bb1edafb6e926fcfebaf590285101e56e
data/README.md CHANGED
@@ -117,6 +117,7 @@ selectivity_unselect('Russia', from: '#countries')
117
117
  ## Demos and examples
118
118
  For detailed information on Selectivity.js possibilities and behavior, visit:
119
119
 
120
+ * [**Sample Rails application**](https://github.com/msx2/selectivity-rails-sample-app)
120
121
  * [Selectivity.js repository](https://github.com/arendjr/selectivity)
121
122
  * [Selectibity.js gh-page](https://arendjr.github.io/selectivity)
122
123
 
@@ -1,5 +1,5 @@
1
1
  module Selectivity
2
2
  module Rails
3
- VERSION = '0.0.4'
3
+ VERSION = '0.0.5'
4
4
  end
5
5
  end
@@ -4420,6 +4420,9 @@ Selectivity.Templates = {
4420
4420
  * mode - Mode in which select exists, single or multiple.
4421
4421
  */
4422
4422
  selectCompliance: function(options) {
4423
+ if (options.mode === 'multiple' && !options.name.match(/\[\]$/)) {
4424
+ options.name = options.name + '[]';
4425
+ }
4423
4426
  return ('<select name="' + options.name + '"' + (options.mode === 'multiple' ? ' multiple' : '') + '></select>');
4424
4427
  },
4425
4428
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: selectivity-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Konrad Jurkowski