From c9afcfcf1d06cfe1209dac9922faf3d3bc8be138 Mon Sep 17 00:00:00 2001 From: miripiruni Date: Sun, 5 May 2013 02:54:06 +0400 Subject: [PATCH] Fix for F5 --- shower.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/shower.js b/shower.js index 365f42a..e7a6b9f 100755 --- a/shower.js +++ b/shower.js @@ -807,14 +807,17 @@ window.shower = window.shower || (function(window, document, undefined) { e.preventDefault(); if (shower.isListMode()) { - var slideNumber = e.shiftKey ? currentSlideNumber : 0; + var slideNumber = e.shiftKey ? currentSlideNumber : 0, + slide; // Warning: go must be before enterSlideMode. // Otherwise there is a bug in Chrome shower.go(slideNumber); shower.enterSlideMode(); shower.showPresenterNotes(slideNumber); - shower.slideList[slideNumber].process(shower); + slide = shower.slideList[currentSlideNumber]; + + slide.timing && slide.initTimer(shower); } else { shower.enterListMode(); }