Area riferimenti non azzerata passando da lista risultati a canto
This commit is contained in:
parent
eaa71db076
commit
f067e254b6
|
@ -21,6 +21,7 @@ export var cantoDisplayed;
|
||||||
export var showOffset = 30;
|
export var showOffset = 30;
|
||||||
export var graphTextReset;
|
export var graphTextReset;
|
||||||
export var isSearchRiferimenti = false;
|
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 cantobadgeclass = 'badge badge-outline-warning badge-pill'
|
||||||
const hdnNamespace = 'http://dantenetwork.it/data/commedia/'
|
const hdnNamespace = 'http://dantenetwork.it/data/commedia/'
|
||||||
|
@ -125,7 +126,6 @@ $(document).ready(function() {
|
||||||
minim.contents().find(" .showcomments").each(function() {
|
minim.contents().find(" .showcomments").each(function() {
|
||||||
$(this).css('display', 'none');
|
$(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').empty()
|
||||||
$('#displaynote').append($(emptyNoteList))
|
$('#displaynote').append($(emptyNoteList))
|
||||||
vistaRiferimenti = false
|
vistaRiferimenti = false
|
||||||
|
@ -570,8 +570,7 @@ $(document).ready(function() {
|
||||||
//rimuove il grafo sintattico se c'è'
|
//rimuove il grafo sintattico se c'è'
|
||||||
resetGraphStr()
|
resetGraphStr()
|
||||||
emptyStructCard()
|
emptyStructCard()
|
||||||
showingComments = false;
|
|
||||||
$('#displaynote').empty();
|
|
||||||
$(".filterRiferimentiOn").css('display', 'none');
|
$(".filterRiferimentiOn").css('display', 'none');
|
||||||
$(".filterRiferimentiOff").css('display', 'none');
|
$(".filterRiferimentiOff").css('display', 'none');
|
||||||
|
|
||||||
|
@ -581,8 +580,13 @@ $(document).ready(function() {
|
||||||
const cid = $(this).attr('name').replace(" ", "_");
|
const cid = $(this).attr('name').replace(" ", "_");
|
||||||
var telive = getListaRis()
|
var telive = getListaRis()
|
||||||
cantoDisplayed = "#" + cid;
|
cantoDisplayed = "#" + cid;
|
||||||
|
|
||||||
|
if(!telive.length > 0 || !showingComments){
|
||||||
|
$('#displaynote').empty();
|
||||||
|
$('#displaynote').append($(emptyNoteList))
|
||||||
|
}
|
||||||
|
|
||||||
|
showingComments = false;
|
||||||
|
|
||||||
if (telive.length > 0) {
|
if (telive.length > 0) {
|
||||||
initCitazioni()
|
initCitazioni()
|
||||||
|
@ -1741,7 +1745,6 @@ $(document).ready(function() {
|
||||||
if (filterBottonAdded) {
|
if (filterBottonAdded) {
|
||||||
$(".filterRiferimentiOn").css('display', 'none');
|
$(".filterRiferimentiOn").css('display', 'none');
|
||||||
$(".filterRiferimentiOff").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').empty()
|
||||||
$('#displaynote').append($(emptyNoteList))
|
$('#displaynote').append($(emptyNoteList))
|
||||||
}
|
}
|
||||||
|
@ -1886,7 +1889,6 @@ $(document).ready(function() {
|
||||||
$("#collapsePurgatorio").collapse('hide');
|
$("#collapsePurgatorio").collapse('hide');
|
||||||
$("#collapseParadiso").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').empty()
|
||||||
$('#displaynote').append($(emptyNoteList))
|
$('#displaynote').append($(emptyNoteList))
|
||||||
}
|
}
|
||||||
|
@ -1898,6 +1900,8 @@ $(document).ready(function() {
|
||||||
elencoRiferimenti = $("#vistaFrasi");
|
elencoRiferimenti = $("#vistaFrasi");
|
||||||
elencoRiferimenti.empty();
|
elencoRiferimenti.empty();
|
||||||
$("#displaynote").empty();
|
$("#displaynote").empty();
|
||||||
|
$('#displaynote').append($(emptyNoteList))
|
||||||
|
|
||||||
$(".filterRiferimentiOn").css('display', 'none');
|
$(".filterRiferimentiOn").css('display', 'none');
|
||||||
$(".filterRiferimentiOff").css('display', 'none');
|
$(".filterRiferimentiOff").css('display', 'none');
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue