gestione Vista Frasi per lista risultati

This commit is contained in:
cesare 2023-02-27 09:40:26 +01:00
parent d157014b54
commit 0ce64001c9
1 changed files with 18 additions and 7 deletions

View File

@ -33,6 +33,7 @@ $(document).ready(function() {
const closeSTag="}"
var cantoDisplayed = "#InfernoCanto_1";
var prevCantoDisplayed = "#InfernoCanto_1";
var queryExecuted = false;
var contextLength = 3;
var idCitazione = "citazione_Frase";
@ -172,7 +173,7 @@ $(" ."+formaClass).hover(function(idx, element) {
//displayCantoWrapperId
//$("#" + displayId).scroll(function() {
$(displayCantoWrapperId).scroll(function() {
if (minimapScrolling) {
@ -335,13 +336,16 @@ $(" ."+formaClass).hover(function(idx, element) {
var canto, numeroCantica;
var divVerso;
prevCantoDisplayed=cantoDisplayed;
$(cantoDisplayed).css("display", "none");
cantoDisplayed = "#vistaFrasi";
if (!queryExecuted){
$("#vistaFrasi").attr('style', 'display: d-flex;');
manageMM("#vistaFrasi")
$(cantoDisplayed).css("display", "none");
if (selectedVista=='frasi'){
loadFrasi();
}
//$(cantoDisplayed).css("display", "none");
return
}
@ -419,13 +423,18 @@ $(" ."+formaClass).hover(function(idx, element) {
$(idris).addClass("font-weight-bold mark ")
}
//aggiungo listeners
addFormaListeners()
//visualizzo
$("#vistaFrasi").attr('style', 'display: d-flex;');
manageMM("#vistaFrasi")
cantoDisplayed = "#vistaFrasi";
if (selectedVista=='frasi'){
loadFrasi();
}
//aggiungo listeners
addFormaListeners()
});
@ -638,6 +647,8 @@ $(" ."+formaClass).hover(function(idx, element) {
listarisultati = []
listaPeriodiRisultato=[]
resultSentences=new Set()
if(cantoDisplayed=='#vistaFrasi')
cantoDisplayed=prevCantoDisplayed
$(cantoDisplayed).attr('style', 'display: d-flex;');
manageMM (cantoDisplayed)
//drawMinimap(cantoDisplayed)