mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-28 11:26: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,12 +203,16 @@ $.Class("RevisionSlider",
|
||||||
_mouseInit: function () {
|
_mouseInit: function () {
|
||||||
var _this = this;
|
var _this = this;
|
||||||
this.elements.button_left.on("click", function (event) {
|
this.elements.button_left.on("click", function (event) {
|
||||||
if (! $(this).hasClass("disabled"))
|
if ($(this).hasClass("disabled"))
|
||||||
|
return;
|
||||||
|
_this.is_playing = false;
|
||||||
_this.goToRevision(_this.revision_number - 1);
|
_this.goToRevision(_this.revision_number - 1);
|
||||||
});
|
});
|
||||||
|
|
||||||
this.elements.button_right.on("click", function (event) {
|
this.elements.button_right.on("click", function (event) {
|
||||||
if (! $(this).hasClass("disabled"))
|
if ($(this).hasClass("disabled"))
|
||||||
|
return;
|
||||||
|
_this.is_playing = false;
|
||||||
_this.goToRevision(_this.revision_number + 1);
|
_this.goToRevision(_this.revision_number + 1);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue