mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-27 10:56:16 -04:00
Clicking steppers should pause playback
This commit is contained in:
parent
541f0e5517
commit
13f4a71aba
1 changed files with 8 additions and 4 deletions
|
@ -203,13 +203,17 @@ $.Class("RevisionSlider",
|
|||
_mouseInit: function () {
|
||||
var _this = this;
|
||||
this.elements.button_left.on("click", function (event) {
|
||||
if (! $(this).hasClass("disabled"))
|
||||
_this.goToRevision(_this.revision_number - 1);
|
||||
if ($(this).hasClass("disabled"))
|
||||
return;
|
||||
_this.is_playing = false;
|
||||
_this.goToRevision(_this.revision_number - 1);
|
||||
});
|
||||
|
||||
this.elements.button_right.on("click", function (event) {
|
||||
if (! $(this).hasClass("disabled"))
|
||||
_this.goToRevision(_this.revision_number + 1);
|
||||
if ($(this).hasClass("disabled"))
|
||||
return;
|
||||
_this.is_playing = false;
|
||||
_this.goToRevision(_this.revision_number + 1);
|
||||
});
|
||||
|
||||
this.elements.button_play.on("click", function (event) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue