Fixed the NaN Bug on timeslider

pull/40/merge
Peter 'Pita' Martischka 2011-07-25 17:26:56 +01:00
parent 1067d17381
commit eb40c014b6
3 changed files with 12 additions and 5 deletions

View File

@ -163,10 +163,17 @@ function createTimesliderClientVars (padId, callback)
callback(err);
});
},
//get the timestamp of the last revision
function(callback)
{
pad.getRevisionDate(pad.getHeadRevisionNumber(), function(err, date)
{
clientVars.currentTime = date;
callback(err);
});
},
function(callback)
{
//currentTime: rev.timestamp,
//get the head revision Number
var lastRev = pad.getHeadRevisionNumber();

View File

@ -343,6 +343,8 @@ function loadBroadcastJS()
}
updateTimer();
function goToRevision(newRevision)
{
padContents.targetRevision = newRevision;

View File

@ -223,9 +223,7 @@
<div id="timeslider-right"></div>
<div id="timer">
06/14/2011 19:29:04
</div>
<div id="timer"></div>
<div id="timeslider-slider">
<div id="ui-slider-handle"></div>