diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2015-03-18 09:11:33 +0000 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2015-03-18 09:11:33 +0000 |
commit | b8204dff944ce2a016652a9004852fa0befe2f54 (patch) | |
tree | 6abaa075cf6ae3fc0b826b7732a0b39d29d99c6f | |
parent | 7b4a0e10cf16e4669e87e13a499a84f49e5bc8cb (diff) | |
download | sariulclocks-b8204dff944ce2a016652a9004852fa0befe2f54.tar.gz |
avoid "do you want to re-POST?" warnings in browser
-rw-r--r-- | assets/js/main.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/assets/js/main.js b/assets/js/main.js index 9417e3c..6e4379f 100644 --- a/assets/js/main.js +++ b/assets/js/main.js @@ -89,7 +89,8 @@ function startLesson() // set the cookie and reload to start the session createCookie("class_cookie", cookieString, 1); - location.reload(true); + // reload, preventing Firefox from resubmitting POST data + window.location.assign(document.URL); } // end a class @@ -189,7 +190,9 @@ function leftClockToggle() createCookie("clock_cookie", "0", 1); else createCookie("clock_cookie", "1", 1); - location.reload(true); + + // reload, preventing Firefox from resubmitting POST data + window.location.assign(document.URL); } // function to make a FlipClock with a few additional features. Not |