summaryrefslogtreecommitdiff
path: root/static/js/pichat2.js
diff options
context:
space:
mode:
Diffstat (limited to 'static/js/pichat2.js')
-rw-r--r--static/js/pichat2.js10
1 files changed, 8 insertions, 2 deletions
diff --git a/static/js/pichat2.js b/static/js/pichat2.js
index ceeb397..e8c08ee 100644
--- a/static/js/pichat2.js
+++ b/static/js/pichat2.js
@@ -486,6 +486,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
@@ -547,7 +550,6 @@ function dragTarget (target, callbacks) {
}
base.enter = function(e){
base.target.classList.add('over');
- console.log(e.target);
if ('enter' in callbacks) {
callbacks.enter(Drag.url);
}
@@ -2222,7 +2224,7 @@ function linkReplaceWithoutImage(url){
return "<a target='_blank' href='" + linkUrl + "'>" + url + "</a>"
}
-var MUTES = {};
+var MUTES = localStorage['mutes']['nick'];
$(".mute").live("click", function(){
$(this).removeClass("mute");
$(this).addClass("unmute");
@@ -2230,6 +2232,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");
@@ -2238,6 +2242,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) {