From dbd0886ad7ed7aa41d5125d4ab7c65056cf237ee Mon Sep 17 00:00:00 2001
From: Ben Adida <ben@adida.net>
Date: Sat, 8 Mar 2014 14:48:44 -0800
Subject: [PATCH] fixed the way the loading gif is displayed

---
 heliosbooth/css/booth.css       | 3 +++
 heliosbooth/templates/seal.html | 2 +-
 heliosbooth/vote.html           | 2 +-
 3 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/heliosbooth/css/booth.css b/heliosbooth/css/booth.css
index 894ec3d..716ada2 100644
--- a/heliosbooth/css/booth.css
+++ b/heliosbooth/css/booth.css
@@ -103,4 +103,7 @@ h3 {
 #election_hash {
   font-family: courier;
 }
+
+#loading_div {
+  display: none;
 }
\ No newline at end of file
diff --git a/heliosbooth/templates/seal.html b/heliosbooth/templates/seal.html
index 0194232..a9d3ecc 100644
--- a/heliosbooth/templates/seal.html
+++ b/heliosbooth/templates/seal.html
@@ -31,7 +31,7 @@ You will then be guided to re-encrypt your choices for final casting.
 Once you click "Proceed", Helios will remember only your encrypted vote. Thus, only you know your vote.</p>
 
 <button id="proceed_button" onclick="BOOTH.cast_ballot();">Proceed to Submission</button><br />
-<div id="loading_div"></div>
+<div id="loading_div"><img src="loading.gif" id="proceed_loading_img" /></div>
 
 
 
diff --git a/heliosbooth/vote.html b/heliosbooth/vote.html
index d6b11a0..1f910ac 100644
--- a/heliosbooth/vote.html
+++ b/heliosbooth/vote.html
@@ -563,7 +563,7 @@ BOOTH.post_audited_ballot = function() {
 
 BOOTH.cast_ballot = function() {
     // show progress spinner
-    $('#loading_div').html('<img src="loading.gif" id="proceed_loading_img" />');
+    $('#loading_div').show();
     $('#proceed_button').attr('disabled', 'disabled');
 
     // at this point, we delete the plaintexts by resetting the ballot
-- 
GitLab