bug fixing
This commit is contained in:
parent
d72b1381cf
commit
e9cf35f88a
|
@ -33,7 +33,7 @@ document.addEventListener("dblclick", function(e){
|
|||
|
||||
//if (name === "sentenceStructArcs_new") {
|
||||
if (name === "sentenceArcsStructs_new") {
|
||||
const structel = document.getElementsByClassName(lsentid);
|
||||
const structel = document.querySelector(cantoDisplayed).getElementsByClassName(lsentid);
|
||||
//console.log(structel[0].parentNode.getAttribute('value'))
|
||||
var stid=lsentid.split('_')
|
||||
var structid=stid[0]+'_'+stid[1]+'_'+structel[0].parentNode.parentNode.getAttribute('value')
|
||||
|
@ -52,8 +52,7 @@ document.addEventListener("dblclick", function(e){
|
|||
|
||||
main.redefine('width', 625);
|
||||
main.redefine("lisid", lisid);
|
||||
const structel = document.getElementsByClassName(lsentid);
|
||||
|
||||
const structel = document.querySelector(cantoDisplayed).getElementsByClassName(lsentid);
|
||||
var stid=lsentid.split('_')
|
||||
var structid=stid[0]+'_'+stid[1]+'_'+structel[0].parentNode.parentNode.getAttribute('value')
|
||||
|
||||
|
@ -85,25 +84,6 @@ document.addEventListener("dblclick", function(e){
|
|||
});
|
||||
|
||||
|
||||
/*function resetMinimap(sentid){
|
||||
//var iframe = document.getElementsByClassName("minimap__content");
|
||||
|
||||
var iframeDocument = iframe[0].contentDocument || iframe[0].contentWindow.document;
|
||||
if (!iframeDocument) {
|
||||
throw "iframe couldn't be found in DOM.";
|
||||
}
|
||||
var iframeSentence = iframeDocument.getElementsByClassName(sentid);
|
||||
for (let i = 0; i < iframeSentence.length; i++) {
|
||||
iframeSentence[i].classList.remove('font-italic');
|
||||
if (!vistaPeriodi)
|
||||
iframeSentence[i].style.removeProperty('color');
|
||||
|
||||
iframeSentence[i].classList.remove('font-weight-normal');
|
||||
}
|
||||
|
||||
}*/
|
||||
|
||||
|
||||
function updateMinimap(sentid){
|
||||
//var iframe = document.getElementsByClassName("minimap__content");
|
||||
|
||||
|
@ -131,14 +111,11 @@ export function resetGraphStr(){
|
|||
var tmpsent = showngr[0] + "_" + showngr[1] + "_s_" + showngr[2]
|
||||
periodograph.parentNode.removeChild(periodograph);
|
||||
|
||||
//var sentence = document.getElementsByClassName(lsentid);
|
||||
var sentence = document.getElementsByClassName(tmpsent);
|
||||
var sentence=document.querySelector(cantoDisplayed).getElementsByClassName(tmpsent);
|
||||
|
||||
for (let i = 0; i < sentence.length; i++) {
|
||||
//var matches = listaClausoleRisultato.filter(s => s.includes(sentence[i].classList[0]));
|
||||
sentence[i].classList.remove('font-italic');
|
||||
/*if (!vistaPeriodi && !listaPeriodiRisultato.includes(tmpsent)
|
||||
&& listaClausoleRisultato.filter(cl => cl.split('-')[0]==tmpsent).length==0)*/
|
||||
if (!vistaPeriodi)
|
||||
sentence[i].style.removeProperty('color');
|
||||
|
||||
|
@ -161,9 +138,9 @@ export function resetGraphStr(){
|
|||
}
|
||||
//EMPTY CARD
|
||||
emptyStructCard()
|
||||
//visualizzazione risultati query
|
||||
graphTextReset()
|
||||
if (tmpsent == lsentid) {
|
||||
|
||||
return true
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue