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
1 changed files with 2 additions and 1 deletions

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);