mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-20 15:36:16 -04:00
Fixed the NaN Bug on timeslider
This commit is contained in:
parent
1067d17381
commit
eb40c014b6
3 changed files with 12 additions and 5 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue