From 493f3386118665893b1f85cc447b2914bf96dcd8 Mon Sep 17 00:00:00 2001 From: frankknoll Date: Mon, 20 Mar 2023 08:26:16 +0100 Subject: [PATCH] search by hitting enter --- docs/batchCodeTable.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/batchCodeTable.js b/docs/batchCodeTable.js index b904970b534..395ce1c1ff1 100644 --- a/docs/batchCodeTable.js +++ b/docs/batchCodeTable.js @@ -30,11 +30,11 @@ class BatchCodeTableInitializer { { language: { - searchPlaceholder: "Enter Batch Code" + searchPlaceholder: "Enter Batch Code (hit Enter)" }, search: { - return: false + return: true }, processing: true, deferRender: true, @@ -162,11 +162,12 @@ class BatchCodeTableInitializer { .on( 'search.dt', function () { + console.log('searching: ', thisClassInstance.#batchCodeTable.search().toUpperCase()); gtag( 'event', 'view_search_results', { - 'search_term': thisClassInstance.#batchCodeTable.search() + 'search_term': thisClassInstance.#batchCodeTable.search().toUpperCase() }); }); }