collect search conditions for searching

This commit is contained in:
nicola 2022-10-03 13:13:58 +02:00
parent 73a54eb3bf
commit 059d44e9a9
2 changed files with 21 additions and 1 deletions

View File

@ -122,7 +122,7 @@
</fieldset>
</div>
<div class="fl w-100 w-70-ns ph1">
<input id="name"
<input id="searchValue"
class="input-reset ba b--black-20 pa2 mb2 db w-100"
type="text" aria-describedby="name-desc" name="query"
value="">

View File

@ -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) {