diff --git a/static/scripts/galaxy.base.js b/static/scripts/galaxy.base.js index 0062e864713..2a68a4d30cc 100644 --- a/static/scripts/galaxy.base.js +++ b/static/scripts/galaxy.base.js @@ -120,10 +120,9 @@ function array_length(an_array) { } // Replace any select box with 20+ options with a text input box + autocomplete. -// TODO: make this work _well_ on pages with multiple forms; currently, value is reverted when any form is submitted - -// value should be reverted when only the form that element is in is submitted. +// TODO: make work with dynamic tool inputs and then can replace all big selects. function replace_big_select_inputs() { - $('select').each( function() { + $('select[name=dbkey]').each( function() { var select_elt = $(this); // Skip if there are < 20 options. if (select_elt.find('option').length < 20) diff --git a/static/scripts/packed/galaxy.base.js b/static/scripts/packed/galaxy.base.js index 8115f97302a..ba5abb131b7 100644 --- a/static/scripts/packed/galaxy.base.js +++ b/static/scripts/packed/galaxy.base.js @@ -1 +1 @@ -$(document).ready(function(){replace_big_select_inputs()});$.fn.makeAbsolute=function(a){return this.each(function(){var b=$(this);var c=b.position();b.css({position:"absolute",marginLeft:0,marginTop:0,top:c.top,left:c.left,right:$(window).width()-(c.left+b.width())});if(a){b.remove().appendTo("body")}})};function ensure_popup_helper(){if($("#popup-helper").length===0){$("
").css({background:"white",opacity:0,zIndex:15000,position:"absolute",top:0,left:0,width:"100%",height:"100%"}).appendTo("body").hide()}}function attach_popupmenu(b,d){var a=function(){d.unbind().hide();$("#popup-helper").unbind("click.popupmenu").hide()};var c=function(g){$("#popup-helper").bind("click.popupmenu",a).show();d.click(a).css({left:0,top:-1000}).show();var f=g.pageX-d.width()/2;f=Math.min(f,$(document).scrollLeft()+$(window).width()-$(d).width()-20);f=Math.max(f,$(document).scrollLeft()+20);d.css({top:g.pageY-5,left:f});return false};$(b).click(c)}function make_popupmenu(c,b){ensure_popup_helper();var a=$("");$.each(b,function(f,e){if(e){$("").html(f).click(e).appendTo(a)}else{$("").html(f).appendTo(a)}});var d=$("