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 +4 -4
- data/app/assets/javascripts/effective_select/initialize.js.coffee +1 -1
- data/app/assets/javascripts/effective_select/overrides.js.coffee +0 -1
- data/app/assets/stylesheets/effective_select/overrides.scss +5 -1
- data/app/models/effective/form_inputs/datetime_field.rb +1 -1
- data/app/models/effective/form_inputs/time_field.rb +1 -1
- data/lib/effective_bootstrap/version.rb +1 -1
- 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: df0fbde9e0f6918d464da5e7bd962401b0db8c8e
|
4
|
+
data.tar.gz: 7b09a1f7b6d8e44ba0414a28b847128999e36a22
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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}
|
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
|