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 20:39:44 UTC
svn commit: r1669663 - in /steve/trunk/pysteve/www/htdocs:
admin/edit_election.html css/steve_interactive.css js/steve_rest.js
Author: humbedooh
Date: Fri Mar 27 19:39:43 2015
New Revision: 1669663
URL: http://svn.apache.org/r1669663
Log:
disable some buttons while an election is closed, they serve no purpose being active
Modified:
steve/trunk/pysteve/www/htdocs/admin/edit_election.html
steve/trunk/pysteve/www/htdocs/css/steve_interactive.css
steve/trunk/pysteve/www/htdocs/js/steve_rest.js
Modified: steve/trunk/pysteve/www/htdocs/admin/edit_election.html
URL: http://svn.apache.org/viewvc/steve/trunk/pysteve/www/htdocs/admin/edit_election.html?rev=1669663&r1=1669662&r2=1669663&view=diff
==============================================================================
--- steve/trunk/pysteve/www/htdocs/admin/edit_election.html (original)
+++ steve/trunk/pysteve/www/htdocs/admin/edit_election.html Fri Mar 27 19:39:43 2015
@@ -21,7 +21,7 @@
<legend>General options</legend>
<a
href="javascript:void(location.href='invite.html'+document.location.search);"
- class="btn-yellow" title="Click to invite people to this election via email">
+ class="btn-yellow" id="invite_btn" title="Click to invite people to this election via email">
<img style="vertical-align: middle;" src="/images/icon_invite.png"/>
Invite people
</a>
@@ -58,7 +58,7 @@
</a>
<a href="javascript:void(primeMonitors());"
- class="btn-orange" title="Sends the election checksum to monitors. Use this right before you invite people to the election.">
+ class="btn-orange" id="cue" title="Sends the election checksum to monitors. Use this right before you invite people to the election.">
<img style="vertical-align: middle;" src="/images/icon_invite.png"/>
Cue monitors
</a>
Modified: steve/trunk/pysteve/www/htdocs/css/steve_interactive.css
URL: http://svn.apache.org/viewvc/steve/trunk/pysteve/www/htdocs/css/steve_interactive.css?rev=1669663&r1=1669662&r2=1669663&view=diff
==============================================================================
--- steve/trunk/pysteve/www/htdocs/css/steve_interactive.css (original)
+++ steve/trunk/pysteve/www/htdocs/css/steve_interactive.css Fri Mar 27 19:39:43 2015
@@ -101,7 +101,7 @@ p {
}
.btn-black {
- background: #888888 !important;
+ background: #333 !important;
border: #aaaaaa solid 1px;
border-radius: 3px;
color: #fff !important;
@@ -118,7 +118,7 @@ p {
margin-left: 10px;
}
.btn-black:hover {
- background: #aaaaaa !important;
+ background: #666 !important;
transition: 0.3s ease;
}
Modified: steve/trunk/pysteve/www/htdocs/js/steve_rest.js
URL: http://svn.apache.org/viewvc/steve/trunk/pysteve/www/htdocs/js/steve_rest.js?rev=1669663&r1=1669662&r2=1669663&view=diff
==============================================================================
--- steve/trunk/pysteve/www/htdocs/js/steve_rest.js (original)
+++ steve/trunk/pysteve/www/htdocs/js/steve_rest.js Fri Mar 27 19:39:43 2015
@@ -103,8 +103,12 @@ function renderEditElection(code, respon
document.getElementById('title').innerHTML = "Edit election: " + response.base_data.title + " (#" + election + ")" + c
if (response.base_data.closed) {
+ document.getElementById('invite_btn').setAttribute("style", "pointer-events:none; background: #999 !important; color: #bbb !important;")
+ document.getElementById('invite_btn').setAttribute("href", null)
+ document.getElementById('cue').setAttribute("style", "pointer-events:none; background: #999 !important; color: #bbb !important;")
+ document.getElementById('cue').setAttribute("href", null)
document.getElementById('closea').setAttribute("href", "javascript:void(location.href='reopen.html'+document.location.search);");
- document.getElementById('closex').innerHTML = "Reopen election"
+ document.getElementById('closex').innerHTML = "Reopen"
document.getElementById('closea').setAttribute("title", "Click to reopen this election")
}
var obj = document.getElementById('ballot')