effective_bootstrap 0.1.8 → 0.1.9

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: bff1d75dba9d0ae47c87581ebabc1b30ba624bbc
4
- data.tar.gz: 4aca09fc196381f53b7f415a8265e7d98a012a05
3
+ metadata.gz: df0fbde9e0f6918d464da5e7bd962401b0db8c8e
4
+ data.tar.gz: 7b09a1f7b6d8e44ba0414a28b847128999e36a22
5
5
  SHA512:
6
- metadata.gz: a950fc1c9b922679bbc1316b4f17b081c9a522eb6de3682264dd38f014f05769040ce31495b576e14c67a7abba43601059108073ca314c34902aaa8556bff65a
7
- data.tar.gz: 70efe8b067991772b672f6b151301d454b23acf605181a4967f1d6149670d80bffadf0f8f1bef2174727b691ceac0ca6c848fed52b70701408808658b91c79a4
6
+ metadata.gz: 1a1a74eec25fabe39ba5cdf8b34e57f8acb94c536e5f8888f18cb2a5f1b03454875b02a5c7c7169000498e78e93dd1a2eb8d3f7471607719436ead155106e4f5
7
+ data.tar.gz: 92724d005a2dc2916e4d6dcb48aec5ea913f6dcb4fddbb799c35d80e48ae76d129c1bbaf273f5a21d1e47ed420ae3f92e75c5755d0ce4d71db3b3a22aa40ffba
@@ -16,7 +16,7 @@ matchWithHtml = (params, data) ->
16
16
  return data if $.trim(params.term) == ''
17
17
  return null unless data.element?
18
18
 
19
- if $(data.element.getAttribute('data-html')).text().indexOf(params.term) > -1 then data else null
19
+ if $(data.element.getAttribute('data-html')).text().toLowerCase().indexOf(params.term.toLowerCase()) > -1 then data else null
20
20
 
21
21
  (this.EffectiveBootstrap || {}).effective_select = ($element, options) ->
22
22
  switch options['template']
@@ -8,7 +8,6 @@ $(document).on 'select2:open', (event) ->
8
8
  $select.removeData('state')
9
9
  setTimeout ( => $select.select2('close') ), 0
10
10
 
11
-
12
11
  # effective_select custom reinitialization functionality
13
12
  # This is a custom event intended to be manually triggered when the underlying options change
14
13
  # You can use this to dynamically disable options (with or without the effective_select hide_disabled: true)
@@ -81,7 +81,6 @@ form.form-inline .select2-container--bootstrap {
81
81
  }
82
82
 
83
83
  // Bootstrap 4 Feedback server side
84
-
85
84
  .form-control.is-invalid ~ .select2 {
86
85
  .select2-selection { border: 1px solid #dc3545; }
87
86
  }
@@ -104,3 +103,8 @@ form.form-inline .select2-container--bootstrap {
104
103
  }
105
104
  }
106
105
 
106
+ // Remove the selected results from the list when in multiple mode
107
+ .select2-results__options[aria-multiselectable=true] {
108
+ .select2-results__option[aria-selected=true] { display: none; }
109
+ .select2-results__option:last-child[aria-selected=true] { display: inline-block; visibility: hidden; height: 1px; }
110
+ }
@@ -26,7 +26,7 @@ module Effective
26
26
  end
27
27
 
28
28
  def pattern # html
29
- am_pm? ? '\d{4}(-\d{2})?(-\d{2})?( \d{1,2})?(:\d{2} \[aApPmM]{2})?' : '\d{4}(\-d{2})?(-\d{2})?( \d{2})?(:\d{2})?'
29
+ am_pm? ? '\d{4}(-\d{2})?(-\d{2})?( \d{1,2})?(:\d{2} [aApPmM]{2})?' : '\d{4}(\-d{2})?(-\d{2})?( \d{2})?(:\d{2})?'
30
30
  end
31
31
 
32
32
  def format # moment.js
@@ -22,7 +22,7 @@ module Effective
22
22
  end
23
23
 
24
24
  def pattern # html
25
- am_pm? ? '\d{1,2}(:\d{2} \[aApPmM]{2})?' : '\d{2}(:\d{2})?'
25
+ am_pm? ? '\d{1,2}(:\d{2} [aApPmM]{2})?' : '\d{2}(:\d{2})?'
26
26
  end
27
27
 
28
28
  def format # moment.js
@@ -1,3 +1,3 @@
1
1
  module EffectiveBootstrap
2
- VERSION = '0.1.8'.freeze
2
+ VERSION = '0.1.9'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_bootstrap
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8
4
+ version: 0.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect