2018-12-05 23:21:45 +05:30
|
|
|
import { AwardsHandler } from '~/awards_handler';
|
|
|
|
|
|
|
|
class EmojiMenuInModal extends AwardsHandler {
|
|
|
|
constructor(emoji, toggleButtonSelector, menuClass, selectEmojiCallback, targetContainerEl) {
|
|
|
|
super(emoji);
|
|
|
|
|
|
|
|
this.selectEmojiCallback = selectEmojiCallback;
|
|
|
|
this.toggleButtonSelector = toggleButtonSelector;
|
|
|
|
this.menuClass = menuClass;
|
|
|
|
this.targetContainerEl = targetContainerEl;
|
|
|
|
|
|
|
|
this.bindEvents();
|
|
|
|
}
|
|
|
|
|
2019-02-15 15:39:39 +05:30
|
|
|
postEmoji($emojiButton, awardUrl, selectedEmoji) {
|
2018-12-05 23:21:45 +05:30
|
|
|
this.selectEmojiCallback(selectedEmoji, this.emoji.glEmojiTag(selectedEmoji));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export default EmojiMenuInModal;
|