fix hide-threads.js & no-animated-gif.js interaction

This commit is contained in:
czaks 2014-08-10 22:54:47 +02:00
parent 1a1d44aadf
commit 4d7933deb8
2 changed files with 3 additions and 3 deletions

View File

@ -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();

View File

@ -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'));