mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-28 11:26:16 -04:00
Handle new author info and revisions
Handle upstream new revisions and added users/authors.
This commit is contained in:
parent
3c0bd5767b
commit
805e492e74
4 changed files with 109 additions and 70 deletions
|
@ -98,8 +98,10 @@ $.Class("RevisionSlider",
|
|||
var keepPlaying = function (current_revnum) {
|
||||
if (current_revnum == _this.connection.getHeadRevision())
|
||||
_this.is_playing = false;
|
||||
if (!_this.is_playing)
|
||||
if (!_this.is_playing) {
|
||||
_this.render();
|
||||
return;
|
||||
}
|
||||
setTimeout(function () {
|
||||
_this.goToRevision(current_revnum + 1, keepPlaying);
|
||||
}, RevisionSlider.PLAYBACK_DELAY);
|
||||
|
@ -113,6 +115,7 @@ $.Class("RevisionSlider",
|
|||
*/
|
||||
render: function () {
|
||||
this.elements.revision_label.html(html10n.get("timeslider.version", { "version": this.revision_number }));
|
||||
this.slider.setMax(this.connection.getHeadRevision());
|
||||
this.slider.setValue(this.revision_number);
|
||||
window.location.hash = "#" + this.revision_number;
|
||||
this.setTimestamp(this.timestamp);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue