projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch '9005-share-discovery'
[arvados.git]
/
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 34075ca56c3c0f684a353f72b1bbbd9a480ced66..e3639d0f2bdefea6d72da8b0fd6cd34bbe47f4c2 100644
(file)
--- a/
apps/workbench/app/assets/javascripts/filterable.js
+++ b/
apps/workbench/app/assets/javascripts/filterable.js
@@
-52,7
+52,12
@@
function updateFilterableQueryNow($target) {
var newquery = $target.data('filterable-query-new');
var params = $target.data('infinite-content-params-filterable') || {};
function updateFilterableQueryNow($target) {
var newquery = $target.data('filterable-query-new');
var params = $target.data('infinite-content-params-filterable') || {};
- params.filters = [['any', 'ilike', '%' + newquery + '%']];
+ if (newquery == null || newquery == '') {
+ params.filters = [];
+ } else {
+ params.filters = [['any', '@@', newquery.trim().concat(':*')]];
+ }
+ $(".modal-dialog-preview-pane").html("");
$target.data('infinite-content-params-filterable', params);
$target.data('filterable-query', newquery);
}
$target.data('infinite-content-params-filterable', params);
$target.data('filterable-query', newquery);
}