biola_wcms_components 0.12.0 → 0.13.0

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: b2c32b3a90c9dfe1f3157f18342f6b2a1e291860
4
- data.tar.gz: c38f5ee1aa19ebdb87691b7a232096e7ab9abc75
3
+ metadata.gz: 2802a6c200a51349a68b8605af8a8474f89ae163
4
+ data.tar.gz: 2e1c869ef464d3da66b8e2888c741a4a31042903
5
5
  SHA512:
6
- metadata.gz: ad190102285a081bd675f087733b265be3b47d632d89c9282bd995f045e54efa01bb052361f6271cb9e62181c525566dc9298d1622b7154c64b837b4d2c3cf90
7
- data.tar.gz: 9093d7189d408da34af926b4a7148b09bcf6cc6429a817dff8bc3bc7094913774bec7aacc5d383d0bff813fb37bee19fa614bfb2d06e207c07144637539b3384
6
+ metadata.gz: 57cb4ea0580a89a2fef1ff59266705db0670cc1589048e1924a6d58c767f20ad6afdedad94c2298ff951b64ef9d614d451c0d316ee3f793bf1f6e26590fdea31
7
+ data.tar.gz: c0aaf7c89a469aa0582b5de4386f99143204bfb7a60b7c6fbf73df3f1c329a3f5bbff4375bfd2b17fb9968da76a7c49e47aeeebb94114e23a994d960453392ab
@@ -1,8 +1,12 @@
1
1
  $(document).ready ->
2
2
  $('.bs-multiselect').each ->
3
3
  $(this).multiselect
4
- enableFiltering: true,
4
+ enableCaseInsensitiveFiltering: true
5
+ enableFiltering: true
5
6
  filterBehavior: 'value'
7
+ includeSelectAllOption: false
8
+ maxHeight: 400
9
+ numberDisplayed: 1
6
10
 
7
11
  # Replace glyphicons with fonticons
8
12
  if $('.bs-multiselect').length > 0
@@ -5,9 +5,13 @@ ruby:
5
5
  collection ||= nil
6
6
  value_method ||= nil
7
7
  text_method ||= nil
8
+ multiple ||= nil
9
+ prompt ||= nil
8
10
 
9
11
  options = {}
10
- html_options = {class: 'form-control bs-multiselect', multiple: "multiple"}
12
+ html_options = {class: 'form-control bs-multiselect'}
13
+ html_options[:multiple] = 'multiple' if multiple
14
+ options[:prompt] = prompt if prompt
11
15
 
12
16
  div
13
17
  = form.collection_select attribute, collection, value_method, text_method, options, html_options
@@ -1,3 +1,3 @@
1
1
  module BiolaWcmsComponents
2
- VERSION = "0.12.0"
2
+ VERSION = "0.13.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: biola_wcms_components
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.0
4
+ version: 0.13.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Hall
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-06-17 00:00:00.000000000 Z
11
+ date: 2015-06-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ace-rails-ap