Skip to content

Commit

Permalink
js/showoff.js: strip trailing whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
rctay committed Sep 17, 2010
1 parent 8a3f93b commit a7ac05b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions public/js/showoff.js
Expand Up @@ -481,8 +481,8 @@ var preshow_imagesTotal = 0;
var preshow_des;

function runPreShow() {
if(preshow_running) {
stopPreShow()
if(preshow_running) {
stopPreShow()
} else {
var minutes = prompt("Minutes from now to start")
preshow_secondsLeft = parseFloat(minutes) * 60
Expand All @@ -496,7 +496,7 @@ function runPreShow() {
preshow_des = data
})
} else {
$('#preshow').append('<img ref="' + n + '" src="/file/_preshow/' + n + '"/>')
$('#preshow').append('<img ref="' + n + '" src="/file/_preshow/' + n + '"/>')
}
})
startPreShow()
Expand Down Expand Up @@ -554,11 +554,11 @@ function secondsToTime(sec) {

function stopPreShow() {
preshow_running = false

$('#preshow').remove()
$('#tips').remove()
$('#preshow_timer').remove()

toggleFooter()
loadSlides(loadSlidesBool, loadSlidesPrefix);
}
Expand Down

0 comments on commit a7ac05b

Please sign in to comment.