From 1e25fffc706b30c608559d9d0c10859beb71f7af Mon Sep 17 00:00:00 2001 From: "DESKTOP-GENO133\\IvanPlex" Date: Thu, 4 Apr 2024 19:14:49 -0600 Subject: [PATCH] added incremental search --- Views/Vehicle/_Report.cshtml | 6 +++++- wwwroot/js/reports.js | 4 +++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/Views/Vehicle/_Report.cshtml b/Views/Vehicle/_Report.cshtml index dad04b5..89eb77d 100644 --- a/Views/Vehicle/_Report.cshtml +++ b/Views/Vehicle/_Report.cshtml @@ -134,9 +134,13 @@ diff --git a/wwwroot/js/reports.js b/wwwroot/js/reports.js index b75afce..a8e6206 100644 --- a/wwwroot/js/reports.js +++ b/wwwroot/js/reports.js @@ -159,7 +159,9 @@ function performGlobalSearch() { }); } function handleGlobalSearchKeyPress(event) { - if (event.keyCode == 13) { + if ($('#globalSearchAutoSearchCheck').is(':checked')){ + setDebounce(performGlobalSearch); + } else if (event.keyCode == 13) { performGlobalSearch(); } }