From f298a5d0b2c12ed2c208f6504e7e904da4616d2f Mon Sep 17 00:00:00 2001 From: Yuri Kuznetsov Date: Sun, 7 Aug 2022 19:09:31 +0300 Subject: [PATCH] focus on reset fitler --- client/src/views/record/search.js | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/client/src/views/record/search.js b/client/src/views/record/search.js index f182895ccb..24bb97f110 100644 --- a/client/src/views/record/search.js +++ b/client/src/views/record/search.js @@ -448,11 +448,16 @@ define('views/record/search', ['view'], function (Dep) { if (this.isSearchedWithAdvancedFilter) { this.showResetFiltersButton(); + + console.log(this.$applyFilters.get(0)); + + this.$applyFilters.focus(); + + return; } - else { - if (!this.hasAdvancedFilter()) { - this.hideApplyFiltersButton(); - } + + if (!this.hasAdvancedFilter()) { + this.hideApplyFiltersButton(); } }, @@ -629,6 +634,7 @@ define('views/record/search', ['view'], function (Dep) { this.$leftDropdown = this.$el.find('div.search-row div.left-dropdown'); this.$resetButton = this.$el.find('[data-action="reset"]'); this.$applyFiltersContainer = this.$el.find('.advanced-filters-apply-container'); + this.$applyFilters = this.$applyFiltersContainer.find('[data-action="applyFilters"]'); this.updateAddFilterButton();