progress availability check added

This commit is contained in:
Vadim Makeev 2011-07-21 14:53:09 +04:00
parent c1c5b35091
commit 8658830fc5
1 changed files with 1 additions and 0 deletions

View File

@ -65,6 +65,7 @@
} }
function updateProgress(slide_number) { function updateProgress(slide_number) {
if (!progress) return;
progress.style.width = (100 / (slideList.length - 1) * normalizeSlideNumber(slide_number)).toFixed(2) + '%'; progress.style.width = (100 / (slideList.length - 1) * normalizeSlideNumber(slide_number)).toFixed(2) + '%';
} }