Author: humbedooh
Date: Fri Mar 27 12:48:30 2015
New Revision: 1669571
URL: http://svn.apache.org/r1669571
Log:
link to diff
Modified:
steve/trunk/pysteve/www/htdocs/js/steve_monitor.js
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=1669571&r1=1669570&r2=1669571&view=diff
==============================================================================
--- steve/trunk/pysteve/www/htdocs/js/steve_monitor.js (original)
+++ steve/trunk/pysteve/www/htdocs/js/steve_monitor.js Fri Mar 27 12:48:30 2015
@@ -63,7 +63,7 @@ function updateVotes(code, response, iss
}
}
if (is.hash && response.issue.hash != is.hash) {
- riggedIssues[issue] = true
+ riggedIssues[issue] = "WAS: " + JSON.stringify(is) + "
- IS NOW: " + JSON.stringify(response.issue)
}
if (ehash == null) {
ehash = response.hash
@@ -169,8 +169,8 @@ function showChanges(issue) {
sinceLast = a[0]
nrc = a[1]
header.innerHTML = ""
- if (riggedIssues[issue.id] == true) {
- header.innerHTML += "<font color='red'>ISSUE
POSSIBLY RIGGED! </font>"
+ if (riggedIssues[issue.id] &&
riggedIssues[issue.id].length > 0) {
+ header.innerHTML += "<a href='#'
onclick=\"alert(riggedIssues['" + issue.id + "']);\"><font color='red'>ISSUE
POSSIBLY RIGGED! </font></a><br/> "
}
header.innerHTML += numvotes + " votes cast, " +
sinceLast + " new votes cast since last update. " + recasts[issue.id] + " votes
have been recast, split among " + nrc + " voters."
header.innerHTML += " <a
href='javascript:void(showDetails(\"" + issue.id + "\"));'>Show details</a>"