more tests

This commit is contained in:
Zack Rauen 2017-10-29 16:53:37 -04:00
parent 1999baddee
commit 7133d14883
1 changed files with 2 additions and 0 deletions

View File

@ -727,6 +727,7 @@ EmoteModule.prototype.autoCapitalize = function () {
if (lastWord == "danSgame") return;
var ret = self.capitalize(lastWord.toLowerCase());
if (ret !== null && ret !== undefined) {
console.log(text.replace(lastWord, ret));
utils.insertText(utils.getTextArea()[0], text.replace(lastWord, ret));
}
}
@ -1346,6 +1347,7 @@ QuickEmoteMenu.prototype.switchQem = function(id) {
emoteIcon.on("click", function () {
var emote = $(this).attr("title");
var ta = utils.getTextArea();
console.log("click");
console.log(ta.val().slice(-1) == " " ? ta.val() + emote : ta.val() + " " + emote);
utils.insertText(ta[0], ta.val().slice(-1) == " " ? ta.val() + emote : ta.val() + " " + emote);
});