Fix bug that prevented correct toggling of recently used menu.

This commit is contained in:
Jeremy Goecks
2010-06-21 15:07:38 -04:00
parent 783815f428
commit fc5110f08d
4 changed files with 6 additions and 6 deletions
+2 -1
View File
@@ -478,7 +478,8 @@ function reset_tool_search( initValue )
if (tool_menu_frame.length == 0)
tool_menu_frame = $(document);
// Remove matching class.
// Remove classes that indicate searching is active.
$(this).removeClass("search_active");
tool_menu_frame.find(".toolTitle").removeClass("search_match");
// Reset visibility of tools and labels.
File diff suppressed because one or more lines are too long
+1 -4
View File
@@ -124,10 +124,7 @@
else
{
// "Show" menu.
var tool_search_query = $('#galaxy_tools').contents().find('#tool-search-query');
var tool_search_active = tool_search_query.is(":visible") && tool_search_query.val().length > 3;
if (!tool_search_active)
if (!$('#galaxy_tools').contents().find('#tool-search-query').hasClass("search_active"))
// Default.
ru_menu.slideDown();
else
+2
View File
@@ -113,6 +113,8 @@
if ( this.value.length < 3 ) {
reset_tool_search(false);
} else if ( this.value != this.lastValue ) {
// Add class to denote that searching is active.
$(this).addClass("search_active");
// input.addClass(config.loadingClass);
// Add '*' to facilitate partial matching.
var q = this.value + '*';