selectivity-rails 0.0.4 → 0.0.5
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 +4 -4
- data/README.md +1 -0
- data/lib/selectivity/rails/version.rb +1 -1
- data/vendor/assets/javascripts/selectivity.js +3 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 32efd7fbeffcd0334921a2f616b3cf50719beab5
|
|
4
|
+
data.tar.gz: 116fb7836cac8ec002c5db9647b632c0033410ff
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
|
|
@@ -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
|
|