On Wed, Dec 22, 2010 at 3:49 PM, Jeremy Goecks <jeremy.goecks@emory.edu> wrote:
You're right - thank you: On closer inspection, it does offer search, but the default text isn't "Click to Search or Select", rather it is the first entry in the list, so it could be much more obvious.
The Javascript code that implements this feature is tuned to default values in tools and dbkeys. For reference, the code is in the function replace_big_select_inputs() in galaxy.base.js, and the relevant lines are:
-- // Set initial text if it's empty. if ( start_value === '' || start_value === '?') { text_input_elt.attr('value', 'Click to Search or Select'); } --
So, if the select's start value of a select is empty or '?', the text will default to the prompt string.
Can you imagine a better way to handle this situation?
Thanks, J.
That makes sense, but I guess somewhere before the Javascipt runs the start value is being set to the first entry in the list. I've tried adding value="" and value="?" to the <param type="select" ...> tag to no avail. Maybe I'm missing something. Should all browsers behave the same? Peter