[Rt-commit] rt branch, 4.4/cf-chosen-select, repushed
? sunnavy
sunnavy at bestpractical.com
Mon Apr 6 13:58:48 EDT 2015
The branch 4.4/cf-chosen-select was deleted and repushed:
was ffee4175991435b18090ca16a1c30449a7784391
now 1618d268e5069c39e03676bda98cee1b36d9c832
1: 54991cf ! 1: f158652 use chosen to make long lists of cf select more friendly.
@@ -1740,22 +1740,13 @@
--- a/share/html/Elements/EditCustomFieldSelect
+++ b/share/html/Elements/EditCustomFieldSelect
@@
- % my $out = $m->scomp('SELF:options', %ARGS, SelectedRef => \$selected, CategoryRef => \@category);
- % if (!$HideCategory and @category and not $CustomField->BasedOnObj->id) {
- %# XXX - Hide this select from w3m?
-- <select onchange="filter_cascade_by_id(<% $name |n,j %>, this.value)" name="<% $name %>-Category" class="CF-<%$CustomField->id%>-Edit">
-+ <select onchange="filter_cascade_by_id(<% $name |n,j %>, this.value)" name="<% $name %>-Category" class="CF-<%$CustomField->id%>-Edit<% $use_chosen ? ' chosen' : '' %>">
- <option value=""<% !$selected && qq[ selected="selected"] |n %>><&|/l&>-</&></option>
- % foreach my $cat (@category) {
- % my ($depth, $name) = @$cat;
-@@
</select>
% }
<select
- name="<%$name%>" id="<%$name%>" class="CF-<%$CustomField->id%>-Edit"
+ name="<%$name%>" id="<%$name%>" class="CF-<%$CustomField->id%>-Edit<% $use_chosen ? ' chosen' : '' %>"
- % if ( $Rows && ( $Multiple || !@category || $RenderType eq 'Select box') ) {
- size="<% $Rows %>"
+ % if ($CustomField->BasedOnObj->id) {
+ data-cascade-based-on-name="<% $BasedOnName || $NamePrefix . $CustomField->BasedOnObj->id . '-Value' |n %>"
% }
@@
}
@@ -2251,8 +2242,8 @@
if ( element.tagName == 'SELECT' ) {
var complete_select = document.getElementById(id + "-Complete" );
-- return filter_cascade_select(element, complete_select, vals, is_hierarchical);
-+ filter_cascade_select(element, complete_select, vals, is_hierarchical);
+- return filter_cascade_select(element, complete_select, vals );
++ filter_cascade_select(element, complete_select, vals );
+ if ( jQuery(element).hasClass('chosen') ) {
+ jQuery(element).trigger('chosen:updated');
+ }
2: ffee417 = 2: 1618d26 allow to search the string from anywhere in the word
More information about the rt-commit
mailing list