Mercurial > hg > Members > nobuyasu > Consensus
changeset 90:812bcfae297f draft
modified revisionviewer.html
author | one |
---|---|
date | Mon, 11 Mar 2013 06:40:32 +0900 |
parents | 70b0137e590e |
children | 440b337b2182 |
files | public/viewer/revisionviewer.html |
diffstat | 1 files changed, 8 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/public/viewer/revisionviewer.html Mon Mar 11 06:34:15 2013 +0900 +++ b/public/viewer/revisionviewer.html Mon Mar 11 06:40:32 2013 +0900 @@ -71,9 +71,14 @@ }); } +function changeRevision(id) { + root_id = id; + loadConsensus(id); +} + function createOptionTag(consensus_id, revisionInfo) { var selectArray = new Array(); - selectArray.push("<select>"); + selectArray.push('<select onchange="changeRevision(this.value)" >'); for (var i=0; i<revisionInfo.length; i++) { selectArray.push("<option>"+revisionInfo[i]+"</option>"); } @@ -105,7 +110,8 @@ loadUserList(); loadRevisionInfo(consensus_id); loadConsensus(consensus_id); - setInterval(function(){loadUserList();loadConsensus(consensus_id)},LOAD_INTERVAL*1000); + setInterval(function(){loadUserList();loadConsensus(root_id)},LOAD_INTERVAL*1000); +// setInterval(function(){loadUserList();loadConsensus(consensus_id)},LOAD_INTERVAL*1000); }else{ document.body.innerHTML="<div style='color:white;font-size:64px'>No ClaimID Specified.<br><a href='index.html' style='color:#88f'>back</a></div>"; }