data-autoslide on vertical parent now applies to all child slides #685
This commit is contained in:
parent
a119c83f86
commit
150cb81405
@ -2327,12 +2327,17 @@ var Reveal = (function(){
|
|||||||
|
|
||||||
if( currentSlide ) {
|
if( currentSlide ) {
|
||||||
|
|
||||||
|
var parentAutoSlide = currentSlide.parentNode ? currentSlide.parentNode.getAttribute( 'data-autoslide' ) : null;
|
||||||
|
var slideAutoSlide = currentSlide.getAttribute( 'data-autoslide' );
|
||||||
|
|
||||||
// If the current slide has a data-autoslide use that,
|
// If the current slide has a data-autoslide use that,
|
||||||
// otherwise use the config.autoSlide value
|
// otherwise use the config.autoSlide value
|
||||||
var slideAutoSlide = currentSlide.getAttribute( 'data-autoslide' );
|
|
||||||
if( slideAutoSlide ) {
|
if( slideAutoSlide ) {
|
||||||
autoSlide = parseInt( slideAutoSlide, 10 );
|
autoSlide = parseInt( slideAutoSlide, 10 );
|
||||||
}
|
}
|
||||||
|
else if( parentAutoSlide ) {
|
||||||
|
autoSlide = parseInt( parentAutoSlide, 10 );
|
||||||
|
}
|
||||||
else {
|
else {
|
||||||
autoSlide = config.autoSlide;
|
autoSlide = config.autoSlide;
|
||||||
}
|
}
|
||||||
|
6
js/reveal.min.js
vendored
6
js/reveal.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user