hide slide number element when disabled

edit
Hakim El Hattab 2015-10-29 14:29:51 +01:00
parent d66cba6efa
commit 9b5e16055a
1 changed files with 2 additions and 1 deletions

View File

@ -881,6 +881,7 @@
dom.controls.style.display = config.controls ? 'block' : 'none'; dom.controls.style.display = config.controls ? 'block' : 'none';
dom.progress.style.display = config.progress ? 'block' : 'none'; dom.progress.style.display = config.progress ? 'block' : 'none';
dom.slideNumber.style.display = config.slideNumber ? 'block' : 'none';
if( config.rtl ) { if( config.rtl ) {
dom.wrapper.classList.add( 'rtl' ); dom.wrapper.classList.add( 'rtl' );
@ -2546,7 +2547,7 @@
function updateSlideNumber() { function updateSlideNumber() {
// Update slide number if enabled // Update slide number if enabled
if( config.slideNumber && dom.slideNumber) { if( config.slideNumber && dom.slideNumber ) {
var value = []; var value = [];
var format = 'h.v'; var format = 'h.v';