diff options
| author | dumpfmprod <dumpfmprod@ubuntu.(none)> | 2014-06-28 12:22:17 -0400 |
|---|---|---|
| committer | dumpfmprod <dumpfmprod@ubuntu.(none)> | 2014-06-28 12:22:17 -0400 |
| commit | b04eea907242bb895f9578638f5f05612311fa66 (patch) | |
| tree | 8af5175552815e15149cdfe9b7d31aab273946b7 /static/js/src/userlist.js | |
| parent | 0f957d316cfae62f9cfabc8df1d26e906de3e553 (diff) | |
fix bug where personal mutes didnt affect .oldmsg divs
Diffstat (limited to 'static/js/src/userlist.js')
| -rw-r--r-- | static/js/src/userlist.js | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/static/js/src/userlist.js b/static/js/src/userlist.js index 3ccb9b2..5ed34be 100644 --- a/static/js/src/userlist.js +++ b/static/js/src/userlist.js @@ -1,8 +1,11 @@ -try { - var MUTES = localStorage["mutes"] ? JSON.parse(localStorage["mutes"]) : {}; -} -catch (e) { - delete localStorage["mutes"] +function initMutes(){ + try { + window.MUTES = localStorage["mutes"] ? JSON.parse(localStorage["mutes"]) : {}; + } + catch (e) { + delete localStorage["mutes"] + window.MUTES = {} + } } $(".mute").live("click", function(){ $(this).removeClass("mute"); |
