IssueNotesRefactor: Stop making request for disabled emojis.

This commit is contained in:
Fatih Acet 2017-08-18 03:18:10 +03:00
parent 9a8654455f
commit 200cc4f167

View file

@ -109,6 +109,7 @@ class AwardsHandler {
}
$thumbsBtn.toggleClass('disabled', $userAuthored);
$thumbsBtn.prop('disabled', $userAuthored);
}
// Create the emoji menu with the first category of emojis.
@ -248,7 +249,7 @@ class AwardsHandler {
},
});
document.querySelector('.js-vue-notes-event').dispatchEvent(toggleAwardEvent);
return document.querySelector('.js-vue-notes-event').dispatchEvent(toggleAwardEvent);
}
const normalizedEmoji = this.emoji.normalizeEmojiName(emoji);