Fix for F5

This commit is contained in:
miripiruni 2013-05-05 02:54:06 +04:00
parent c5515e371b
commit c9afcfcf1d
1 changed files with 5 additions and 2 deletions

View File

@ -807,14 +807,17 @@ window.shower = window.shower || (function(window, document, undefined) {
e.preventDefault(); e.preventDefault();
if (shower.isListMode()) { if (shower.isListMode()) {
var slideNumber = e.shiftKey ? currentSlideNumber : 0; var slideNumber = e.shiftKey ? currentSlideNumber : 0,
slide;
// Warning: go must be before enterSlideMode. // Warning: go must be before enterSlideMode.
// Otherwise there is a bug in Chrome // Otherwise there is a bug in Chrome
shower.go(slideNumber); shower.go(slideNumber);
shower.enterSlideMode(); shower.enterSlideMode();
shower.showPresenterNotes(slideNumber); shower.showPresenterNotes(slideNumber);
shower.slideList[slideNumber].process(shower); slide = shower.slideList[currentSlideNumber];
slide.timing && slide.initTimer(shower);
} else { } else {
shower.enterListMode(); shower.enterListMode();
} }