grafi sintattici rimossi quando si cambia vista
This commit is contained in:
parent
3d5ba3b326
commit
fb3e8008ad
|
@ -70,6 +70,17 @@ $("#valoreVista").on('change', function() {
|
||||||
$(cantoDisplayed).attr('style', 'display: d-flex;')
|
$(cantoDisplayed).attr('style', 'display: d-flex;')
|
||||||
break;
|
break;
|
||||||
case "frasi":
|
case "frasi":
|
||||||
|
//cancello il grafo sintattico
|
||||||
|
var periodograph=document.getElementById("periodograph");
|
||||||
|
if (periodograph!=null){
|
||||||
|
let showngr=periodograph.getAttribute('name').split("_")
|
||||||
|
var tmpsent=showngr[0]+"_"+showngr[1]+"_s_"+showngr[2];
|
||||||
|
resetSentenceStructure(tmpsent)
|
||||||
|
shownSentenceList.delete(tmpsent)
|
||||||
|
|
||||||
|
//$("#periodograph").empty()
|
||||||
|
periodograph.parentNode.removeChild(periodograph);
|
||||||
|
}
|
||||||
loadFrasi();
|
loadFrasi();
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
@ -663,6 +674,18 @@ function resetFrasi(){
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
//cancello il grafo sintattico
|
||||||
|
var periodograph=document.getElementById("periodograph");
|
||||||
|
if (periodograph!=null){
|
||||||
|
let showngr=periodograph.getAttribute('name').split("_")
|
||||||
|
var tmpsent=showngr[0]+"_"+showngr[1]+"_s_"+showngr[2];
|
||||||
|
|
||||||
|
resetSentenceStructure(tmpsent)
|
||||||
|
shownSentenceList.delete(tmpsent)
|
||||||
|
|
||||||
|
//$("#periodograph").empty()
|
||||||
|
periodograph.parentNode.removeChild(periodograph);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function getCantica(numeroCantica){
|
function getCantica(numeroCantica){
|
||||||
|
|
Loading…
Reference in New Issue