Browse Source

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

pull/40/head
czaks 10 years ago
parent
commit
4d7933deb8
  1. 2
      js/hide-threads.js
  2. 4
      js/no-animated-gif.js

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

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

Loading…
Cancel
Save