bug fixing
This commit is contained in:
parent
d81610d0ca
commit
82ad4ee82f
|
@ -101,25 +101,25 @@ $(document).ready(function() {
|
||||||
loadFrasi();
|
loadFrasi();
|
||||||
break;
|
break;
|
||||||
case "visPeriodi|false":
|
case "visPeriodi|false":
|
||||||
$("#vistaFrasi").css("display", "none");
|
//$("#vistaFrasi").css("display", "none");
|
||||||
resetFrasi()
|
resetFrasi()
|
||||||
manageResults()
|
manageResults()
|
||||||
vistaPeriodi = false
|
vistaPeriodi = false
|
||||||
break;
|
break;
|
||||||
case "visRiferimenti|true":
|
case "visRiferimenti|true":
|
||||||
vistaRiferimenti = true
|
vistaRiferimenti = true
|
||||||
initCitazioni()
|
/*initCitazioni()
|
||||||
$(cantoDisplayed).find(" .showcomments").each(function() {
|
$(cantoDisplayed).find(" .showcomments").each(function() {
|
||||||
$(this).css("display", "inline-block");
|
$(this).css("display", "inline-block");
|
||||||
})
|
})
|
||||||
//$(" .showcomments").css("display", "inline-block");
|
//$(" .showcomments").css("display", "inline-block");
|
||||||
minim.contents().find(" .showcomments").each(function() {
|
minim.contents().find(" .showcomments").each(function() {
|
||||||
$(this).css('display', 'inline-block');
|
$(this).css('display', 'inline-block');
|
||||||
})
|
})*/
|
||||||
|
setCitazioni(true)
|
||||||
break;
|
break;
|
||||||
case "visRiferimenti|false":
|
case "visRiferimenti|false":
|
||||||
$(cantoDisplayed).find(" .showcomments").each(function() {
|
/*$(cantoDisplayed).find(" .showcomments").each(function() {
|
||||||
$(this).css("display", "none");
|
$(this).css("display", "none");
|
||||||
})
|
})
|
||||||
//$(".showcomments").css("display", "none");
|
//$(".showcomments").css("display", "none");
|
||||||
|
@ -127,7 +127,8 @@ $(document).ready(function() {
|
||||||
$(this).css('display', 'none');
|
$(this).css('display', 'none');
|
||||||
})
|
})
|
||||||
$('#displaynote').empty()
|
$('#displaynote').empty()
|
||||||
$('#displaynote').append($(emptyNoteList))
|
$('#displaynote').append($(emptyNoteList))*/
|
||||||
|
setCitazioni(false)
|
||||||
vistaRiferimenti = false
|
vistaRiferimenti = false
|
||||||
break;
|
break;
|
||||||
case "visDialoghi|true":
|
case "visDialoghi|true":
|
||||||
|
@ -149,7 +150,7 @@ $(document).ready(function() {
|
||||||
|
|
||||||
|
|
||||||
$("#visAiuto").click(function(){
|
$("#visAiuto").click(function(){
|
||||||
window.open("./manuale/manualeGui.html","_blank");
|
window.open("./Manuale/manualeGUI.html","_blank");
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
|
@ -592,13 +593,13 @@ $(document).ready(function() {
|
||||||
|
|
||||||
showingComments = false;
|
showingComments = false;
|
||||||
|
|
||||||
if (telive.length > 0) {
|
/*if (telive.length > 0) {
|
||||||
initCitazioni()
|
initCitazioni()
|
||||||
} else {
|
} else {
|
||||||
if (vistaRiferimenti) {
|
if (vistaRiferimenti) {
|
||||||
initCitazioni();
|
initCitazioni();
|
||||||
}
|
}
|
||||||
}
|
}*/
|
||||||
var parcid = cid.split('_')
|
var parcid = cid.split('_')
|
||||||
var numeroCantica;
|
var numeroCantica;
|
||||||
var forma;
|
var forma;
|
||||||
|
@ -620,6 +621,13 @@ $(document).ready(function() {
|
||||||
loadedCanti.add(cid)
|
loadedCanti.add(cid)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
setCitazioni(vistaRiferimenti)
|
||||||
|
|
||||||
|
if (telive.length > 0) {
|
||||||
|
initCitazioni()
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
for (var tel of telive) {
|
for (var tel of telive) {
|
||||||
var telId = tel.split("_");
|
var telId = tel.split("_");
|
||||||
|
@ -637,11 +645,17 @@ $(document).ready(function() {
|
||||||
//console.log("#" + $(this).attr('name').replace(" ", "_"))
|
//console.log("#" + $(this).attr('name').replace(" ", "_"))
|
||||||
if (vistaPeriodi) {
|
if (vistaPeriodi) {
|
||||||
loadFrasi();
|
loadFrasi();
|
||||||
|
}else{
|
||||||
|
resetFrasi()
|
||||||
}
|
}
|
||||||
|
|
||||||
if (vistaDialoghi) {
|
if (vistaDialoghi) {
|
||||||
loadDialoghi();
|
loadDialoghi();
|
||||||
|
}else{
|
||||||
|
resetDialoghi()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
addFormaListenersInCanto();
|
addFormaListenersInCanto();
|
||||||
|
|
||||||
//se si sta arrivando al canto da un link della lista risultati
|
//se si sta arrivando al canto da un link della lista risultati
|
||||||
|
@ -859,6 +873,28 @@ $(document).ready(function() {
|
||||||
}
|
}
|
||||||
emphResults()
|
emphResults()
|
||||||
}
|
}
|
||||||
|
function setCitazioni(citeon){
|
||||||
|
if (citeon){
|
||||||
|
initCitazioni()
|
||||||
|
$(cantoDisplayed).find(" .showcomments").each(function() {
|
||||||
|
$(this).css("display", "inline-block");
|
||||||
|
})
|
||||||
|
minim.contents().find(" .showcomments").each(function() {
|
||||||
|
$(this).css('display', 'inline-block');
|
||||||
|
})
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
$(cantoDisplayed).find(" .showcomments").each(function() {
|
||||||
|
$(this).css("display", "none");
|
||||||
|
})
|
||||||
|
minim.contents().find(" .showcomments").each(function() {
|
||||||
|
$(this).css('display', 'none');
|
||||||
|
})
|
||||||
|
$('#displaynote').empty()
|
||||||
|
$('#displaynote').append($(emptyNoteList))
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
function loadFrasi() {
|
function loadFrasi() {
|
||||||
var stp
|
var stp
|
||||||
$(cantoDisplayed).find(' .sentencetag').each(function() {
|
$(cantoDisplayed).find(' .sentencetag').each(function() {
|
||||||
|
|
|
@ -101,25 +101,25 @@ $(document).ready(function() {
|
||||||
loadFrasi();
|
loadFrasi();
|
||||||
break;
|
break;
|
||||||
case "visPeriodi|false":
|
case "visPeriodi|false":
|
||||||
$("#vistaFrasi").css("display", "none");
|
//$("#vistaFrasi").css("display", "none");
|
||||||
resetFrasi()
|
resetFrasi()
|
||||||
manageResults()
|
manageResults()
|
||||||
vistaPeriodi = false
|
vistaPeriodi = false
|
||||||
break;
|
break;
|
||||||
case "visRiferimenti|true":
|
case "visRiferimenti|true":
|
||||||
vistaRiferimenti = true
|
vistaRiferimenti = true
|
||||||
initCitazioni()
|
/*initCitazioni()
|
||||||
$(cantoDisplayed).find(" .showcomments").each(function() {
|
$(cantoDisplayed).find(" .showcomments").each(function() {
|
||||||
$(this).css("display", "inline-block");
|
$(this).css("display", "inline-block");
|
||||||
})
|
})
|
||||||
//$(" .showcomments").css("display", "inline-block");
|
//$(" .showcomments").css("display", "inline-block");
|
||||||
minim.contents().find(" .showcomments").each(function() {
|
minim.contents().find(" .showcomments").each(function() {
|
||||||
$(this).css('display', 'inline-block');
|
$(this).css('display', 'inline-block');
|
||||||
})
|
})*/
|
||||||
|
setCitazioni(true)
|
||||||
break;
|
break;
|
||||||
case "visRiferimenti|false":
|
case "visRiferimenti|false":
|
||||||
$(cantoDisplayed).find(" .showcomments").each(function() {
|
/*$(cantoDisplayed).find(" .showcomments").each(function() {
|
||||||
$(this).css("display", "none");
|
$(this).css("display", "none");
|
||||||
})
|
})
|
||||||
//$(".showcomments").css("display", "none");
|
//$(".showcomments").css("display", "none");
|
||||||
|
@ -127,7 +127,8 @@ $(document).ready(function() {
|
||||||
$(this).css('display', 'none');
|
$(this).css('display', 'none');
|
||||||
})
|
})
|
||||||
$('#displaynote').empty()
|
$('#displaynote').empty()
|
||||||
$('#displaynote').append($(emptyNoteList))
|
$('#displaynote').append($(emptyNoteList))*/
|
||||||
|
setCitazioni(false)
|
||||||
vistaRiferimenti = false
|
vistaRiferimenti = false
|
||||||
break;
|
break;
|
||||||
case "visDialoghi|true":
|
case "visDialoghi|true":
|
||||||
|
@ -306,6 +307,7 @@ $(document).ready(function() {
|
||||||
}
|
}
|
||||||
|
|
||||||
//listarisultati.sort(function(a, b){return a - b});
|
//listarisultati.sort(function(a, b){return a - b});
|
||||||
|
$("#vistaFrasi").empty();
|
||||||
showFrasi(start, offset)
|
showFrasi(start, offset)
|
||||||
|
|
||||||
if (vistaPeriodi) {
|
if (vistaPeriodi) {
|
||||||
|
@ -386,7 +388,7 @@ $(document).ready(function() {
|
||||||
var canto, numeroCantica;
|
var canto, numeroCantica;
|
||||||
var divVerso;
|
var divVerso;
|
||||||
var elencoRisutati = $(whereToDisplay);
|
var elencoRisutati = $(whereToDisplay);
|
||||||
elencoRisutati.empty();
|
//elencoRisutati.empty();
|
||||||
|
|
||||||
var numeroRisultato = 0;
|
var numeroRisultato = 0;
|
||||||
var ultimaPosizione = 0;
|
var ultimaPosizione = 0;
|
||||||
|
@ -588,13 +590,13 @@ $(document).ready(function() {
|
||||||
|
|
||||||
showingComments = false;
|
showingComments = false;
|
||||||
|
|
||||||
if (telive.length > 0) {
|
/*if (telive.length > 0) {
|
||||||
initCitazioni()
|
initCitazioni()
|
||||||
} else {
|
} else {
|
||||||
if (vistaRiferimenti) {
|
if (vistaRiferimenti) {
|
||||||
initCitazioni();
|
initCitazioni();
|
||||||
}
|
}
|
||||||
}
|
}*/
|
||||||
var parcid = cid.split('_')
|
var parcid = cid.split('_')
|
||||||
var numeroCantica;
|
var numeroCantica;
|
||||||
var forma;
|
var forma;
|
||||||
|
@ -616,6 +618,11 @@ $(document).ready(function() {
|
||||||
loadedCanti.add(cid)
|
loadedCanti.add(cid)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
setCitazioni(vistaRiferimenti)
|
||||||
|
|
||||||
|
if (telive.length > 0) {
|
||||||
|
initCitazioni()
|
||||||
|
}
|
||||||
|
|
||||||
for (var tel of telive) {
|
for (var tel of telive) {
|
||||||
var telId = tel.split("_");
|
var telId = tel.split("_");
|
||||||
|
@ -855,6 +862,30 @@ $(document).ready(function() {
|
||||||
}
|
}
|
||||||
emphResults()
|
emphResults()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function setCitazioni(citeon) {
|
||||||
|
if (citeon) {
|
||||||
|
initCitazioni()
|
||||||
|
$(cantoDisplayed).find(" .showcomments").each(function() {
|
||||||
|
$(this).css("display", "inline-block");
|
||||||
|
})
|
||||||
|
minim.contents().find(" .showcomments").each(function() {
|
||||||
|
$(this).css('display', 'inline-block');
|
||||||
|
})
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
$(cantoDisplayed).find(" .showcomments").each(function() {
|
||||||
|
$(this).css("display", "none");
|
||||||
|
})
|
||||||
|
minim.contents().find(" .showcomments").each(function() {
|
||||||
|
$(this).css('display', 'none');
|
||||||
|
})
|
||||||
|
$('#displaynote').empty()
|
||||||
|
$('#displaynote').append($(emptyNoteList))
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
function loadFrasi() {
|
function loadFrasi() {
|
||||||
var stp
|
var stp
|
||||||
$(cantoDisplayed).find(' .sentencetag').each(function() {
|
$(cantoDisplayed).find(' .sentencetag').each(function() {
|
||||||
|
@ -2089,8 +2120,8 @@ $(document).ready(function() {
|
||||||
var ultimaFormaCanto;
|
var ultimaFormaCanto;
|
||||||
let numeroPeriodo = 1;
|
let numeroPeriodo = 1;
|
||||||
showingComments = false;
|
showingComments = false;
|
||||||
let startindex=800*(parseInt(canto)-1)
|
let startindex = 800 * (parseInt(canto) - 1)
|
||||||
let reformecantica=formecantica.slice(startindex)
|
let reformecantica = formecantica.slice(startindex)
|
||||||
|
|
||||||
//formecantica.map(function(item) {
|
//formecantica.map(function(item) {
|
||||||
reformecantica.map(function(item) {
|
reformecantica.map(function(item) {
|
||||||
|
|
Loading…
Reference in New Issue