summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorczaks <marcin@6irc.net>2014-08-10 22:54:47 +0200
committerczaks <marcin@6irc.net>2014-08-10 22:54:47 +0200
commit4d7933deb8516a96690cd42f0780dbaca2ab7bb7 (patch)
treed17a8e44cc25a53341c3499f5e6230235c70e1c0
parent1a1d44aadfdab2cc0ee3f74bae96090b9fd09e5f (diff)
fix hide-threads.js & no-animated-gif.js interaction
-rw-r--r--js/hide-threads.js2
-rw-r--r--js/no-animated-gif.js4
2 files changed, 3 insertions, 3 deletions
diff --git a/js/hide-threads.js b/js/hide-threads.js
index c8aa2a03..f83b479b 100644
--- a/js/hide-threads.js
+++ b/js/hide-threads.js
@@ -36,7 +36,7 @@ $(document).ready(function(){
}
}
- var fields_to_hide = 'div.post,div.video-container,video,img,p.fileinfo,a.hide-thread-link,div.new-posts,br';
+ var fields_to_hide = 'div.post,div.video-container,video,img:not(.unanimated),canvas,p.fileinfo,a.hide-thread-link,div.new-posts,br';
var do_hide_threads = function() {
var id = $(this).children('p.intro').children('a.post_no:eq(1)').text();
diff --git a/js/no-animated-gif.js b/js/no-animated-gif.js
index 36d48954..5d21704f 100644
--- a/js/no-animated-gif.js
+++ b/js/no-animated-gif.js
@@ -24,7 +24,7 @@ function unanimate_gif(e) {
draw_image();
}
- $(e).hide();
+ $(e).addClass("unanimated").hide();
}
function no_animated_gif() {
@@ -37,7 +37,7 @@ function no_animated_gif() {
function animated_gif() {
$('canvas.post-image').remove();
- $('img.post-image').show();
+ $('img.post-image').removeClass("unanimated").show();
localStorage.no_animated_gif = false;
$('#no-animated-gif>a').text(_('Unanimate GIFs'));