diff options
Diffstat (limited to 'static/js/src')
| -rw-r--r-- | static/js/src/chat.js | 3 | ||||
| -rw-r--r-- | static/js/src/userlist.js | 6 |
2 files changed, 8 insertions, 1 deletions
diff --git a/static/js/src/chat.js b/static/js/src/chat.js index f24917c..e59e948 100644 --- a/static/js/src/chat.js +++ b/static/js/src/chat.js @@ -207,6 +207,9 @@ function setImgsEnable() { } }; +function text_off(){ + setTextEnable.call( $("#textbutton input").attr("checked", false) ) +} // scrolling stuff // this code keeps the div scrolled to the bottom, but will also let the user scroll up, without jumping down diff --git a/static/js/src/userlist.js b/static/js/src/userlist.js index 4af21c1..7ca4344 100644 --- a/static/js/src/userlist.js +++ b/static/js/src/userlist.js @@ -1,4 +1,4 @@ -var MUTES = {}; +var MUTES = localStorage['mutes']['nick']; $(".mute").live("click", function(){ $(this).removeClass("mute"); $(this).addClass("unmute"); @@ -6,6 +6,8 @@ $(".mute").live("click", function(){ var nick = $(this).parent().children("a").html().replace(/<img[^>]+>/,""); $(".nick_" + nick).hide(); MUTES[nick] = true; + localStorage['mutes'] = localStorage['mutes'] || {} + localStorage['mutes'][nick] = true }); $(".unmute").live("click", function(){ $(this).removeClass("unmute"); @@ -14,6 +16,8 @@ $(".unmute").live("click", function(){ var nick = $(this).parent().children("a").html().replace(/<img[^>]+>/,""); $(".nick_" + nick).show(); delete MUTES[nick]; + localStorage['mutes'] = localStorage['mutes'] || {} + delete localStorage['mutes'][nick] }); function buildUserDiv(user) { |
