summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulie Lala <jules@okfoc.us>2014-06-24 19:02:02 -0400
committerJulie Lala <jules@okfoc.us>2014-06-24 19:02:02 -0400
commitaa061952dd30c8dc661733caf08406bd03bb200d (patch)
tree07468cab3420ac0b7d693fee4ee3fc5cf67ba51a
parent3d01a4b5e460c021554f0519722e558a5f12f1fd (diff)
foo
-rw-r--r--static/js/pichat.js3
-rw-r--r--static/js/pichat2.js3
-rw-r--r--static/js/src/userlist.js3
3 files changed, 6 insertions, 3 deletions
diff --git a/static/js/pichat.js b/static/js/pichat.js
index 61ddf3c..dc3b43b 100644
--- a/static/js/pichat.js
+++ b/static/js/pichat.js
@@ -2248,7 +2248,8 @@ function linkReplaceWithoutImage(url){
return "<a target='_blank' href='" + linkUrl + "'>" + url + "</a>"
}
-var MUTES = localStorage["mutes"] ? JSON.parse(localStorage["mutes"]) : {}
+var MUTES = localStorage["mutes"] ? JSON.parse(localStorage["mutes"]) : {};
+
$(".mute").live("click", function(){
$(this).removeClass("mute");
$(this).addClass("unmute");
diff --git a/static/js/pichat2.js b/static/js/pichat2.js
index 61ddf3c..dc3b43b 100644
--- a/static/js/pichat2.js
+++ b/static/js/pichat2.js
@@ -2248,7 +2248,8 @@ function linkReplaceWithoutImage(url){
return "<a target='_blank' href='" + linkUrl + "'>" + url + "</a>"
}
-var MUTES = localStorage["mutes"] ? JSON.parse(localStorage["mutes"]) : {}
+var MUTES = localStorage["mutes"] ? JSON.parse(localStorage["mutes"]) : {};
+
$(".mute").live("click", function(){
$(this).removeClass("mute");
$(this).addClass("unmute");
diff --git a/static/js/src/userlist.js b/static/js/src/userlist.js
index 7ac6e2f..d18da65 100644
--- a/static/js/src/userlist.js
+++ b/static/js/src/userlist.js
@@ -1,4 +1,5 @@
-var MUTES = localStorage["mutes"] ? JSON.parse(localStorage["mutes"]) : {}
+var MUTES = localStorage["mutes"] ? JSON.parse(localStorage["mutes"]) : {};
+
$(".mute").live("click", function(){
$(this).removeClass("mute");
$(this).addClass("unmute");