Skip to content

Commit

Permalink
hide slide number element when disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
hakimel committed Oct 29, 2015
1 parent d66cba6 commit 9b5e160
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion js/reveal.js
Original file line number Diff line number Diff line change
Expand Up @@ -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' );
Expand Down Expand Up @@ -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';
Expand Down

0 comments on commit 9b5e160

Please sign in to comment.