[Rt-commit] rt branch 5.0/selectpicker-for-multiselect created. rt-5.0.4-5-g84e1e215b8
BPS Git Server
git at git.bestpractical.com
Fri May 12 14:50:18 UTC 2023
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "rt".
The branch, 5.0/selectpicker-for-multiselect has been created
at 84e1e215b8e4848744b25cf9880a2fd225a1a461 (commit)
- Log -----------------------------------------------------------------
commit 84e1e215b8e4848744b25cf9880a2fd225a1a461
Author: Jim Brandt <jbrandt at bestpractical.com>
Date: Fri May 12 10:46:50 2023 -0400
Enable the selectpicker class for multiselects
The selectpicker class activates the improved search and
select controls from bootstrap-select. $use_chosen, named
from the previous JS library "chosen" used in older RT,
is true when a select list will be longer than 10, so if
true, add the selectpicker class to activate the
bootstrap-select behavior and the nice search feature.
diff --git a/share/html/Elements/EditCustomFieldSelect b/share/html/Elements/EditCustomFieldSelect
index 37b80aa40d..0f71c8e463 100644
--- a/share/html/Elements/EditCustomFieldSelect
+++ b/share/html/Elements/EditCustomFieldSelect
@@ -112,7 +112,7 @@
<select
name="<%$name%>" id="<%$name%>"
- class="CF-Edit CF-<%$CustomField->id%>-Edit form-control <% $RenderType eq 'Dropdown' ? 'selectpicker' : '' %>"
+ class="CF-Edit CF-<%$CustomField->id%>-Edit form-control <% $RenderType eq 'Dropdown' || $use_chosen ? 'selectpicker' : '' %>"
% if ( $use_chosen ) {
data-live-search="true"
% }
-----------------------------------------------------------------------
hooks/post-receive
--
rt
More information about the rt-commit
mailing list