Skip to content

Commit

Permalink
a few more relative path fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
benadida committed Dec 31, 2008
1 parent 3a31a77 commit 716ba9a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion helios/templates/election_view.html
Expand Up @@ -28,7 +28,7 @@ <h3>Administration</h3>
<li> <a href="{% url helios.views.one_election_build election_id=election.election_id %}">questions and answers</a></li>

{% if election.public_key %}
<li> <a href="{% url helios.views.one_election_build election_id=election.election_id %}"><em>freeze</em> election and start voting.</a></li>
<li> <a href="{% url helios.views.one_election_freeze election_id=election.election_id %}"><em>freeze</em> election and start voting.</a></li>
{% else %}
<li> <a href="{% url helios.views.one_election_keyshares_manage election_id=election.election_id %}">manage trustees' key shares</a></li>
{% endif %}
Expand Down
4 changes: 2 additions & 2 deletions helios/templates/vote.html
Expand Up @@ -224,7 +224,7 @@ <h3>Fingerprint: <span id="election_hash"></span></h3>

$.ajax({
type: "GET",
url: "/elections/{{election.election_id}}/get_voter_by_email",
url: API_PREFIX + "/elections/{{election.election_id}}/get_voter_by_email",
data: {email: data['email']},
success: function(result) {
var voter = jQuery.secureEvalJSON(result);
Expand All @@ -238,7 +238,7 @@ <h3>Fingerprint: <span id="election_hash"></span></h3>
// not the way to do an error, check this.
$.ajax({
type: "POST",
url: "/elections/{{election.election_id}}/voters/" + voter.voter_id + "/submit",
url: API_PREFIX + "/elections/{{election.election_id}}/voters/" + voter.voter_id + "/submit",
data: data,
success: function(result) {
BOOTH.show_progress('4');
Expand Down

0 comments on commit 716ba9a

Please sign in to comment.