Area riferimenti non azzerata passando da lista risultati a canto

This commit is contained in:
nicola 2025-03-20 18:36:41 +01:00
parent eaa71db076
commit f067e254b6
1 changed files with 11 additions and 7 deletions

View File

@ -21,6 +21,7 @@ export var cantoDisplayed;
export var showOffset = 30;
export var graphTextReset;
export var isSearchRiferimenti = false;
const emptyNoteList = '<div class="card card-body well well-sm m-1 mt-2 p-0" id="noteCard0"><span class="p-3 text-muted bg-lida-vis small" style="opacity: 0.6;">Nessun commento visualizzato</span></div>';
const cantobadgeclass = 'badge badge-outline-warning badge-pill'
const hdnNamespace = 'http://dantenetwork.it/data/commedia/'
@ -125,7 +126,6 @@ $(document).ready(function() {
minim.contents().find(" .showcomments").each(function() {
$(this).css('display', 'none');
})
const emptyNoteList = '<div class="card card-body well well-sm m-1 mt-2 p-0" id="noteCard0"><span class="p-3 text-muted bg-lida-vis small" style="opacity: 0.6;">Nessun commento visualizzato</span></div>';
$('#displaynote').empty()
$('#displaynote').append($(emptyNoteList))
vistaRiferimenti = false
@ -570,8 +570,7 @@ $(document).ready(function() {
//rimuove il grafo sintattico se c'è'
resetGraphStr()
emptyStructCard()
showingComments = false;
$('#displaynote').empty();
$(".filterRiferimentiOn").css('display', 'none');
$(".filterRiferimentiOff").css('display', 'none');
@ -582,7 +581,12 @@ $(document).ready(function() {
var telive = getListaRis()
cantoDisplayed = "#" + cid;
if(!telive.length > 0 || !showingComments){
$('#displaynote').empty();
$('#displaynote').append($(emptyNoteList))
}
showingComments = false;
if (telive.length > 0) {
initCitazioni()
@ -1741,7 +1745,6 @@ $(document).ready(function() {
if (filterBottonAdded) {
$(".filterRiferimentiOn").css('display', 'none');
$(".filterRiferimentiOff").css('display', 'none');
const emptyNoteList = '<div class="card card-body well well-sm m-1 mt-2 p-0" id="noteCard0"><span class="p-3 text-muted bg-lida-vis small" style="opacity: 0.6;">Nessun commento visualizzato</span></div>';
$('#displaynote').empty()
$('#displaynote').append($(emptyNoteList))
}
@ -1886,7 +1889,6 @@ $(document).ready(function() {
$("#collapsePurgatorio").collapse('hide');
$("#collapseParadiso").collapse('hide');
const emptyNoteList = '<div class="card card-body well well-sm m-1 mt-2 p-0" id="noteCard0"><span class="p-3 text-muted bg-lida-vis small" style="opacity: 0.6;">Nessun commento visualizzato</span></div>';
$('#displaynote').empty()
$('#displaynote').append($(emptyNoteList))
}
@ -1898,6 +1900,8 @@ $(document).ready(function() {
elencoRiferimenti = $("#vistaFrasi");
elencoRiferimenti.empty();
$("#displaynote").empty();
$('#displaynote').append($(emptyNoteList))
$(".filterRiferimentiOn").css('display', 'none');
$(".filterRiferimentiOff").css('display', 'none');