From 9b5e16055a916bfc4165b5808faeea4e30ddccab Mon Sep 17 00:00:00 2001 From: Hakim El Hattab Date: Thu, 29 Oct 2015 14:29:51 +0100 Subject: [PATCH] hide slide number element when disabled --- js/reveal.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/reveal.js b/js/reveal.js index e4b380c..2d49d2e 100644 --- a/js/reveal.js +++ b/js/reveal.js @@ -881,6 +881,7 @@ dom.controls.style.display = config.controls ? 'block' : 'none'; dom.progress.style.display = config.progress ? 'block' : 'none'; + dom.slideNumber.style.display = config.slideNumber ? 'block' : 'none'; if( config.rtl ) { dom.wrapper.classList.add( 'rtl' ); @@ -2546,7 +2547,7 @@ function updateSlideNumber() { // Update slide number if enabled - if( config.slideNumber && dom.slideNumber) { + if( config.slideNumber && dom.slideNumber ) { var value = []; var format = 'h.v';