|
@@ -50,6 +50,7 @@ let arrayResponse = [];
|
|
|
|
|
|
function processData(response){
|
|
|
console.log(response);
|
|
|
+ $("#loader").css("display", "none");
|
|
|
if(response.length==0){
|
|
|
alert('No results!')
|
|
|
}
|
|
@@ -68,6 +69,7 @@ function processData(response){
|
|
|
|
|
|
function processOccData(response){
|
|
|
console.log(response);
|
|
|
+ $("#loader").css("display", "none");
|
|
|
if(response.length==0){
|
|
|
alert('No results!')
|
|
|
}
|
|
@@ -98,6 +100,7 @@ let queryDTO = {};
|
|
|
|
|
|
function funzioneRicerca(){
|
|
|
$("#result").html("");
|
|
|
+ $("#loader").css("display", "block");
|
|
|
let collection_elementoDaRicercare = document.getElementsByClassName("barraDiRicerca");
|
|
|
var collection_types = document.getElementsByClassName("flViewBy");
|
|
|
var collection_lenght = collection_elementoDaRicercare.length;
|
|
@@ -143,6 +146,9 @@ function funzioneRicerca(){
|
|
|
else if ((check_tipo == "forma") && (formeLemmi == 1)) {
|
|
|
tipo = "formaLemma";
|
|
|
}
|
|
|
+ else if ((check_tipo == "lemma") && (noLemma == 1)) {
|
|
|
+ tipo = "soloLemmatizzate";
|
|
|
+ }
|
|
|
else if ((check_tipo == "lemma") && (formeLemmi == 0)) {
|
|
|
tipo = "lemma";
|
|
|
}
|
|
@@ -150,7 +156,7 @@ function funzioneRicerca(){
|
|
|
tipo = "lemmaForma";
|
|
|
}
|
|
|
|
|
|
- queryList.push( {"stringa": word, "espansa": espansa, "raddoppiata": raddoppiata, "tipo": tipo, "noLemma": noLemma} );
|
|
|
+ queryList.push( {"stringa": word, "espansa": espansa, "raddoppiata": raddoppiata, "tipo": tipo} );
|
|
|
|
|
|
|
|
|
}
|
|
@@ -676,6 +682,7 @@ $(document).on("change", ".flViewBy", function (ev) {
|
|
|
|
|
|
if (check_tipo == "forma") {
|
|
|
cc[0].disabled = true;
|
|
|
+ cc[0].checked = false;
|
|
|
}
|
|
|
else if (check_tipo == "lemma"){
|
|
|
cc[0].disabled = false;
|