This commit is contained in:
Jiiks 2015-08-30 12:36:37 +03:00
parent 1004c1464e
commit 972714ec85
2 changed files with 12 additions and 14 deletions

View File

@ -300,13 +300,12 @@ QuickEmoteMenu.prototype.init = function (reload) {
emoteBtn.show();
}
if(!reload) {
$(".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);
});
}
$(".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() {

View File

@ -48,13 +48,12 @@ QuickEmoteMenu.prototype.init = function (reload) {
emoteBtn.show();
}
if(!reload) {
$(".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);
});
}
$(".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() {