You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@steve.apache.org by hu...@apache.org on 2015/03/27 15:13:29 UTC

svn commit: r1669591 - in /steve/trunk/pysteve/www/htdocs: js/steve_monitor.js monitor.html

Author: humbedooh
Date: Fri Mar 27 14:13:29 2015
New Revision: 1669591

URL: http://svn.apache.org/r1669591
Log:
try our best to disable refresh of the page, which would be silly

Modified:
    steve/trunk/pysteve/www/htdocs/js/steve_monitor.js
    steve/trunk/pysteve/www/htdocs/monitor.html

Modified: steve/trunk/pysteve/www/htdocs/js/steve_monitor.js
URL: http://svn.apache.org/viewvc/steve/trunk/pysteve/www/htdocs/js/steve_monitor.js?rev=1669591&r1=1669590&r2=1669591&view=diff
==============================================================================
--- steve/trunk/pysteve/www/htdocs/js/steve_monitor.js (original)
+++ steve/trunk/pysteve/www/htdocs/js/steve_monitor.js Fri Mar 27 14:13:29 2015
@@ -184,4 +184,9 @@ function showChanges(issue) {
 	
 	
 	
-}
\ No newline at end of file
+}
+
+
+function disableF5(e) { if ((e.which || e.keyCode) == 116 || (e.which || e.keyCode) == 82) e.preventDefault(); };
+
+window.onkeydown = disableF5
\ No newline at end of file

Modified: steve/trunk/pysteve/www/htdocs/monitor.html
URL: http://svn.apache.org/viewvc/steve/trunk/pysteve/www/htdocs/monitor.html?rev=1669591&r1=1669590&r2=1669591&view=diff
==============================================================================
--- steve/trunk/pysteve/www/htdocs/monitor.html (original)
+++ steve/trunk/pysteve/www/htdocs/monitor.html Fri Mar 27 14:13:29 2015
@@ -13,8 +13,9 @@
 <div class="formbox">
     
 <h2 id="title">Election monitor:</h2>
-<p>
-    <big><b>Leave this page open during the entire election! Doesn't matter if you hibernate your machine, just don't close this window.</b></big>
+<p style="text-align: center;">
+    <big><b>Leave this page open during the entire election! DO NOT REFRESH IT, it does that by itself.<br/>
+    It doesn't matter if you hibernate your machine, just don't close this window.</b></big>
 </p>
 
 <div id="preloaderWrapper">