Skip to content

Commit 45b62a8

Browse files
committed
Only execute action when button is not disabled.
1 parent 3d587b6 commit 45b62a8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Github_Comment_Enhancer/Github_Comment_Enhancer.user.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,7 @@
518518
}
519519

520520
var buttonEvent = function(e) {
521-
if (!this.classList.contains("function-dummy")) {
521+
if (!this.classList.contains("disabled") && !this.classList.contains("function-dummy")) {
522522
e.preventDefault();
523523
executeAction(MarkDown[this.id], this.commentForm, this);
524524
return false;

0 commit comments

Comments
 (0)