|
@@ -113,9 +113,12 @@ function funzioneRicerca(){
|
|
|
var tipo = "";
|
|
|
var espansa = 0;
|
|
|
var raddoppiata = 0;
|
|
|
+ var noLemma = 0;
|
|
|
var formeLemmi = 0;
|
|
|
var check_tipo = collection_types[i].value;
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
if ($('#occ_' + i + ' .ricercaEx').prop("checked"))
|
|
|
{
|
|
|
espansa = 1;
|
|
@@ -128,6 +131,10 @@ function funzioneRicerca(){
|
|
|
{
|
|
|
formeLemmi = 1;
|
|
|
}
|
|
|
+ if ($('#occ_' + i + ' .lemmatizzata').prop("checked"))
|
|
|
+ {
|
|
|
+ noLemma = 1;
|
|
|
+ }
|
|
|
|
|
|
|
|
|
if ((check_tipo == "forma") && (formeLemmi == 0)) {
|
|
@@ -143,7 +150,7 @@ function funzioneRicerca(){
|
|
|
tipo = "lemmaForma";
|
|
|
}
|
|
|
|
|
|
- queryList.push( {"stringa": word, "espansa": espansa, "raddoppiata": raddoppiata, "tipo": tipo} );
|
|
|
+ queryList.push( {"stringa": word, "espansa": espansa, "raddoppiata": raddoppiata, "tipo": tipo, "noLemma": noLemma} );
|
|
|
|
|
|
|
|
|
}
|
|
@@ -327,6 +334,7 @@ function createNewCC(occ) {
|
|
|
input_ricerca_lemmatizzata.value = "lemmatizzata";
|
|
|
input_ricerca_lemmatizzata.type = "checkbox";
|
|
|
input_ricerca_lemmatizzata.name = "lemmatizzata";
|
|
|
+ input_ricerca_lemmatizzata.disabled = "true";
|
|
|
|
|
|
var label_ricerca_lemmatizzata = document.createElement("label");
|
|
|
label_ricerca_lemmatizzata.className = "form-check-label";
|
|
@@ -657,6 +665,16 @@ $(document).on("click", ".deleteCC", function (ev) {
|
|
|
|
|
|
});
|
|
|
|
|
|
-$("select").on("change", function(event) {
|
|
|
- alert("Change!");
|
|
|
+$(document).on("change", ".flViewBy", function (ev) {
|
|
|
+ var check_tipo = this.value;
|
|
|
+ var parent = this.parentElement.parentElement.parentElement.parentElement.parentElement;
|
|
|
+ var cc = parent.getElementsByClassName("lemmatizzata");
|
|
|
+
|
|
|
+ if (check_tipo == "forma") {
|
|
|
+ cc[0].disabled = true;
|
|
|
+ }
|
|
|
+ else if (check_tipo == "lemma"){
|
|
|
+ cc[0].disabled = false;
|
|
|
+ }
|
|
|
+
|
|
|
});
|