fix hide-threads.js & no-animated-gif.js interaction
This commit is contained in:
parent
1a1d44aadf
commit
4d7933deb8
@ -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 do_hide_threads = function() {
|
||||||
var id = $(this).children('p.intro').children('a.post_no:eq(1)').text();
|
var id = $(this).children('p.intro').children('a.post_no:eq(1)').text();
|
||||||
|
@ -24,7 +24,7 @@ function unanimate_gif(e) {
|
|||||||
draw_image();
|
draw_image();
|
||||||
}
|
}
|
||||||
|
|
||||||
$(e).hide();
|
$(e).addClass("unanimated").hide();
|
||||||
}
|
}
|
||||||
|
|
||||||
function no_animated_gif() {
|
function no_animated_gif() {
|
||||||
@ -37,7 +37,7 @@ function no_animated_gif() {
|
|||||||
|
|
||||||
function animated_gif() {
|
function animated_gif() {
|
||||||
$('canvas.post-image').remove();
|
$('canvas.post-image').remove();
|
||||||
$('img.post-image').show();
|
$('img.post-image').removeClass("unanimated").show();
|
||||||
localStorage.no_animated_gif = false;
|
localStorage.no_animated_gif = false;
|
||||||
$('#no-animated-gif>a').text(_('Unanimate GIFs'));
|
$('#no-animated-gif>a').text(_('Unanimate GIFs'));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user