X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/743fc7a6d0086d6e0a2706db4d6a1b5cd1ef00d9..348a4de144b31930d979a0368ac6f913fbad9773:/wolnelektury/static/js/slides.js diff --git a/wolnelektury/static/js/slides.js b/wolnelektury/static/js/slides.js index cf17db64b..c602054ab 100644 --- a/wolnelektury/static/js/slides.js +++ b/wolnelektury/static/js/slides.js @@ -182,6 +182,7 @@ function toggle() { var slideColl = GetElementsWithClassName('*','slide'); var slides = document.getElementById('slideProj'); var outline = document.getElementById('outlineStyle'); + var controls = document.getElementById('controls'); if (!slides.disabled) { slides.disabled = true; outline.disabled = false; @@ -192,6 +193,8 @@ function toggle() { slide.style.visibility = 'visible'; } document.getElementById("toggle").value = "Lista slajdów"; + addClass(controls, 'hideme'); + showHide('h'); } else { slides.disabled = false; outline.disabled = true; @@ -202,7 +205,8 @@ function toggle() { slide.style.visibility = 'hidden'; } slideColl[snum].style.visibility = 'visible'; - document.getElementById("toggle").value = "Ciągły tekst"; + document.getElementById("toggle").value = "Ciągły tekst"; + showHide('s'); } }