Skip to content

Commit

Permalink
Update select2 4.0.12 to 4.0.13
Browse files Browse the repository at this point in the history
  • Loading branch information
ishikawa999 committed Sep 11, 2023
1 parent c9b9c2f commit eae6f5e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
9 changes: 7 additions & 2 deletions assets/javascripts/searchable_selectbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,12 @@ function replaceSelect2() {
if ($('body').hasClass('controller-workflows')) {
return;
} else {
var selectInTabular = $('.tabular .splitcontent select:not([multiple]):not([data-remote]):not(.select2-hidden-accessible)');
if ($('#template_area').length) {
// This code is for the `Support Built-In / Custom Fields` feature of the redmine_issue_templates plugin.
var selectInTabular = $('.tabular .splitcontent select:not([multiple]):not([data-remote])');
} else {
var selectInTabular = $('.tabular .splitcontent select:not([multiple]):not([data-remote]):not(.select2-hidden-accessible)');
}
if (selectInTabular.length) {
selectInTabular.select2({
width: 'style'
Expand Down Expand Up @@ -111,4 +116,4 @@ function retriggerChangeIfNativeEventExists(element) {
if (element.data('use-add-change-event-listener') && typeof Rails != 'undefined') {
Rails.fire(element[0], 'change')
}
}
}
4 changes: 2 additions & 2 deletions assets/javascripts/select2.full.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion init.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Redmine::Plugin.register :redmine_searchable_selectbox do
name 'Redmine Searchable Selectbox'
description "This plugin changes Redmine's selectbox searchable."
version '0.1.10'
version '0.1.11'

settings default: {'enabled' => 1}, partial: 'settings/searchable_selectbox_settings'
end
Expand Down

0 comments on commit eae6f5e

Please sign in to comment.