From 35746197991ce03d6832f7fe3fb92713d5812353 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Wed, 11 Jul 2018 12:51:51 +0200 Subject: Search UI: auto launch search on bookmark selection and criteria close --- ishtar_common/templates/blocks/DataTables.html | 1 + ishtar_common/templates/widgets/search_input.html | 2 ++ 2 files changed, 3 insertions(+) (limited to 'ishtar_common/templates') diff --git a/ishtar_common/templates/blocks/DataTables.html b/ishtar_common/templates/blocks/DataTables.html index 4beabe82a..0ae6ba7d0 100644 --- a/ishtar_common/templates/blocks/DataTables.html +++ b/ishtar_common/templates/blocks/DataTables.html @@ -101,6 +101,7 @@ var query_vars = new Array({{col_idx|safe}}); var selItems_{{sname}} = new Array(); jQuery(document).ready(function(){ jQuery("#search_{{name}}").click(function (){ + $("#id_search_vector").removeClass('input-progress'); if ($('.modal-progress').length > 0){ $('.modal-progress').modal('show'); } diff --git a/ishtar_common/templates/widgets/search_input.html b/ishtar_common/templates/widgets/search_input.html index 842b2bcfb..611caf054 100644 --- a/ishtar_common/templates/widgets/search_input.html +++ b/ishtar_common/templates/widgets/search_input.html @@ -48,6 +48,8 @@ $(document).ready(function(){ if (key === "Enter") { $(".search_button").click(); $(this).focus(); + } else { + $("#id_search_vector").addClass('input-progress'); } if (key === "Escape") { $("#clear-search-button").click(); -- cgit v1.2.3