diff --git a/js/cesareBrowse.js b/js/cesareBrowse.js index 4203705..927bede 100644 --- a/js/cesareBrowse.js +++ b/js/cesareBrowse.js @@ -80,9 +80,6 @@ $('#opzioniVista :checkbox').change(function() { selectedVista = 'frasi' $(cantoDisplayed).attr('style', 'display: d-flex;') vistaPeriodi=true - //cancello il grafo sintattico - //resetGraphStruct() - //emptyStructCard() loadFrasi(); break; case "visPeriodi|false": @@ -116,8 +113,24 @@ $('#opzioniVista :checkbox').change(function() { break; case "visDialoghi|false": $("#vistaDialoghi").css("display", "none"); - //resetFrasi() vistaDialoghi=false + //trasformare in una funzione + for (mk in dialogspeakers){ + + $(cantoDisplayed).find(' .'+dialogspeakers[mk]).each(function() { + $(this).removeClass(dialogspeakers[mk]); + }) + minim.contents().find(' .'+dialogspeakers[mk]).each(function(){ + $(this).removeClass(dialogspeakers[mk]); + }) + } + $(cantoDisplayed).find(' .'+dialogaltri).each(function() { + $(this).removeClass(dialogaltri); + }) + minim.contents().find(' .'+dialogaltri).each(function(){ + $(this).removeClass(dialogaltri); + }) + break; case "visMetafore|true": //loadMetafore();