mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Disable select2 for all multi-select inputs.
These have been nothing but trouble (they have been disabled some places) and are awkward in those places that have not been changed. Is there any place in Galaxy where multi-select inputs + select2 are being used to create a desirable UX? If yes, can we just create a class for these particular widgets and target it with a boolean expression on the same line?
This commit is contained in:
@@ -261,7 +261,7 @@ function replace_big_select_inputs(min_length, max_length, select_elts) {
|
||||
select_elts = select_elts || $('select');
|
||||
|
||||
select_elts.each( function() {
|
||||
var select_elt = $(this);
|
||||
var select_elt = $(this).not('[multiple]');
|
||||
// Make sure that options is within range.
|
||||
var num_options = select_elt.find('option').length;
|
||||
if ( (num_options < min_length) || (num_options > max_length) ) {
|
||||
|
||||
Reference in New Issue
Block a user