From 895c1d6971237698a7697c781ff092ef46f2991a Mon Sep 17 00:00:00 2001 From: John Chilton Date: Fri, 25 Apr 2014 13:00:09 -0500 Subject: [PATCH] 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? --- static/scripts/galaxy.base.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/scripts/galaxy.base.js b/static/scripts/galaxy.base.js index 9f6dbb34157..89c11345d59 100644 --- a/static/scripts/galaxy.base.js +++ b/static/scripts/galaxy.base.js @@ -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) ) {