From 059d44e9a97a8912e50d392d955b9e732f062f63 Mon Sep 17 00:00:00 2001 From: nicola Date: Mon, 3 Oct 2022 13:13:58 +0200 Subject: [PATCH] collect search conditions for searching --- index_work_Nik.html | 2 +- js/guimanagerNik.js | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/index_work_Nik.html b/index_work_Nik.html index 145806a..4b2e6f1 100644 --- a/index_work_Nik.html +++ b/index_work_Nik.html @@ -122,7 +122,7 @@
- diff --git a/js/guimanagerNik.js b/js/guimanagerNik.js index 8de2dee..28e1525 100644 --- a/js/guimanagerNik.js +++ b/js/guimanagerNik.js @@ -529,6 +529,26 @@ $(document).ready(function() { return true + } + ) + + jQuery(document).delegate('#grammarbutton', 'click', function(e) { + + alert('Update not yet implemented, in progress...') + var size = Object.keys(condizioniFiltro).length; + if (size == 0){ + var clausola = $("#searchValue").val() + clausola = clausola.trim(); + if (clausola == "" || clausola == ' '){ + return false + } + alert (clausola); + condizioniFiltro['filtro-1'] = "query="+clausola; + } + // condizioniFiltro contiene le condizioni nella forma "clausola=valore" + return true + + } ) function AggiornaFiltro(filtroId) {