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