listener
This commit is contained in:
parent
1004c1464e
commit
972714ec85
|
@ -300,13 +300,12 @@ QuickEmoteMenu.prototype.init = function (reload) {
|
|||
emoteBtn.show();
|
||||
}
|
||||
|
||||
if(!reload) {
|
||||
$(".emote-icon").off();
|
||||
$(".emote-icon").on("click", function() {
|
||||
var emote = $(this).attr("id");
|
||||
var ta = $(".channel-textarea-inner textarea");
|
||||
ta.val(ta.val().slice(-1) == " " ? ta.val() + emote : ta.val() + " " + emote);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
QuickEmoteMenu.prototype.obsCallback = function() {
|
||||
|
|
|
@ -48,13 +48,12 @@ QuickEmoteMenu.prototype.init = function (reload) {
|
|||
emoteBtn.show();
|
||||
}
|
||||
|
||||
if(!reload) {
|
||||
$(".emote-icon").off();
|
||||
$(".emote-icon").on("click", function() {
|
||||
var emote = $(this).attr("id");
|
||||
var ta = $(".channel-textarea-inner textarea");
|
||||
ta.val(ta.val().slice(-1) == " " ? ta.val() + emote : ta.val() + " " + emote);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
QuickEmoteMenu.prototype.obsCallback = function() {
|
||||
|
|
Loading…
Reference in New Issue