MediaWiki:Minerva.js: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 552: Line 552:
     var b = document.getElementById(a); //outputs something like document.getElementById("tlp-button-text-1.21")
     var b = document.getElementById(a); //outputs something like document.getElementById("tlp-button-text-1.21")
     z.style.display = "block";
     z.style.display = "block";
     b.innerHTML = "Collapse";
     //b.innerHTML = "Collapse";
   }
   }
   TLPPropositions.forEach(TLPExpandOne);
   TLPPropositions.forEach(TLPExpandOne);
Line 565: Line 565:
     var b = document.getElementById(a); //outputs something like document.getElementById("tlp-button-text-1.21")
     var b = document.getElementById(a); //outputs something like document.getElementById("tlp-button-text-1.21")
     z.style.display = "none";
     z.style.display = "none";
     b.innerHTML = "Expand";
     //b.innerHTML = "Expand";
   }
   }
    
    
   TLPPropositions.forEach(TLPCollapseOne);
   TLPPropositions.forEach(TLPCollapseOne);
}
}