Add UI option for no emotes (#404)

This commit is contained in:
calzoneman 2014-10-23 23:21:44 -05:00
parent 029fa62af2
commit 12804d1052
2 changed files with 3 additions and 0 deletions

View File

@ -113,6 +113,7 @@ mixin us-chat
option(value="onlyping") Only when I am mentioned or PMed
option(value="always") Always
mixin rcheckbox("us-sendbtn", "Add a send button to chat")
mixin rcheckbox("us-no-emotes", "Disable chat emotes")
mixin us-mod
#us-mod.tab-pane

View File

@ -624,6 +624,7 @@ function showUserOptions() {
$("#us-blink-title").val(USEROPTS.blink_title);
$("#us-ping-sound").val(USEROPTS.boop);
$("#us-sendbtn").prop("checked", USEROPTS.chatbtn);
$("#us-no-emotes").prop("checked", USEROPTS.no_emotes);
$("#us-modflair").prop("checked", USEROPTS.modhat);
$("#us-joinmessage").prop("checked", USEROPTS.joinmessage);
@ -657,6 +658,7 @@ function saveUserOptions() {
USEROPTS.blink_title = $("#us-blink-title").val();
USEROPTS.boop = $("#us-ping-sound").val();
USEROPTS.chatbtn = $("#us-sendbtn").prop("checked");
USEROPTS.no_emotes = $("#us-no-emotes").prop("checked");
if (CLIENT.rank >= 2) {
USEROPTS.modhat = $("#us-modflair").prop("checked");