From 01a22232d4c5bfd6c496842f9cb19b64b6b01520 Mon Sep 17 00:00:00 2001 From: Lukasz Anwajler Date: Tue, 1 Feb 2011 09:12:00 -0600 Subject: [PATCH] Even more sexy lessons for teachers. --- wolnelektury/static/js/slides.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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'); } } -- 2.20.1