mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-27 19:06:15 -04:00
Don't process clicks on steppers if disabled
This commit is contained in:
parent
ab9b55dbc4
commit
14b2af44a1
1 changed files with 4 additions and 3 deletions
|
@ -203,12 +203,13 @@ $.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) {
|
||||||
console.log("was :", _this.revision_number);
|
if (! $(this).hasClass("disabled"))
|
||||||
_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) {
|
||||||
_this.goToRevision(_this.revision_number + 1);
|
if (! $(this).hasClass("disabled"))
|
||||||
|
_this.goToRevision(_this.revision_number + 1);
|
||||||
});
|
});
|
||||||
|
|
||||||
this.elements.button_play.on("click", function (event) {
|
this.elements.button_play.on("click", function (event) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue