X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/df9e166a5ffc4aa79658bec1a5d552a3b413f0d8..0eb72b526bf8bbb011551ecf019f604e17a534f1:/apps/workbench/app/assets/javascripts/filterable.js diff --git a/apps/workbench/app/assets/javascripts/filterable.js b/apps/workbench/app/assets/javascripts/filterable.js index 27473ad285..938ad80b77 100644 --- a/apps/workbench/app/assets/javascripts/filterable.js +++ b/apps/workbench/app/assets/javascripts/filterable.js @@ -1,3 +1,7 @@ +// Copyright (C) The Arvados Authors. All rights reserved. +// +// SPDX-License-Identifier: AGPL-3.0 + // filterable.js shows/hides content when the user operates // search/select widgets. For "infinite scroll" content, it passes the // filters to the server and retrieves new content. For other content, @@ -55,8 +59,9 @@ function updateFilterableQueryNow($target) { if (newquery == null || newquery == '') { params.filters = []; } else { - params.filters = [['any', '@@', newquery.concat(':*')]]; + params.filters = [['any', '@@', newquery.trim().concat(':*')]]; } + $(".modal-dialog-preview-pane").html(""); $target.data('infinite-content-params-filterable', params); $target.data('filterable-query', newquery); }