simple search fixed
This commit is contained in:
parent
f5456d2dff
commit
4d4dc893a2
|
@ -620,7 +620,7 @@
|
|||
|
||||
<div id="displayOptions" class="col-12 px-0">
|
||||
|
||||
<!-- <div class="collapse" id="collapseOptions">
|
||||
<div class="collapse" id="collapseOptions">
|
||||
<div class="col-12 p-0">
|
||||
<div class="card card-body bg-lida08 p-2">
|
||||
<div class="form-inline input-group px-1 py-2">
|
||||
|
@ -641,7 +641,7 @@
|
|||
</select>
|
||||
</div>
|
||||
|
||||
<div class="bg-light well m-0" id="contextDiv0">
|
||||
<!-- <div class="bg-light well m-0" id="contextDiv0">
|
||||
|
||||
<div id="contextTable-xX0"
|
||||
class="row no-gutters p-1 pt-0 bg-lida08">
|
||||
|
@ -984,10 +984,10 @@
|
|||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
-->
|
||||
</div>
|
||||
</div>
|
||||
</div> -->
|
||||
</div>
|
||||
|
||||
<div class="collapse" id="collapseAdvanced">
|
||||
|
||||
|
|
|
@ -1449,10 +1449,14 @@ $(document).ready(function() {
|
|||
esprlogica = []
|
||||
jsonQuery = getJsonQuery()
|
||||
|
||||
if (jsonQuery['QueryAvanzata'] == 0)
|
||||
if (jsonQuery['QueryAvanzata'] == 0){ // ricerca semplice
|
||||
unitaRicerca = 'forma'
|
||||
else
|
||||
jsonQuery['Clausola0']['queryText'] = $("#queryText")[0].value; // work around to fix simple query
|
||||
jsonQuery['Clausola0']['Attiva'] = "1";
|
||||
}
|
||||
else{
|
||||
unitaRicerca = jsonQuery['unitaRicerca']
|
||||
}
|
||||
console.log("got json query, unita ricerca: " + unitaRicerca)
|
||||
if (jsonQuery['QueryAvanzata'] == 0 && jsonQuery['Clausola0']['queryText'] == '') {
|
||||
alert('Digitare una stringa da cercare')
|
||||
|
|
|
@ -316,7 +316,7 @@ $(document).ready(function() {
|
|||
// Evento: modifica di un campo clausole
|
||||
$("form #lemma_forma,#queryText,#opzioni_testo").on('change', function() {
|
||||
if ($(this)[0].id == "queryText"){
|
||||
var orgSelection = $('#lemma_forma option:selected')[0].value
|
||||
var orgSelection = "forma" // $('#lemma_forma option:selected')[0].value
|
||||
var qText = $(this)[0].value;
|
||||
if (qText !== null && qText !== '') {qText = ' "' + qText + '"';}
|
||||
setLemmaForma(qText,orgSelection);
|
||||
|
|
Loading…
Reference in New Issue