mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Fix clearing of search inputs (slightly more robust selector usage
resolves this and will hopefully be more durable to changes moving forward)
This commit is contained in:
@@ -37,7 +37,7 @@ function searchInput(parentNode, options) {
|
||||
// .................................................................... input rendering and events
|
||||
// visually clear the search, trigger an event, and call the callback
|
||||
function clearSearchInput(event) {
|
||||
var $input = $(this).parent().children("input");
|
||||
var $input = $(this).closest(".search-control").children("input");
|
||||
$input.val("").trigger("searchInput.clear").blur();
|
||||
options.onclear();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user