Fixed unanimating gifs in the catalog
This commit is contained in:
parent
afbe945d83
commit
b7592c3eec
@ -13,7 +13,10 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
function unanimate_gif(e) {
|
function unanimate_gif(e) {
|
||||||
var c = $('<canvas class="post-image"></canvas>');
|
if (active_page === "catalog")
|
||||||
|
var c = $('<canvas class="thread-image"></canvas>');
|
||||||
|
else
|
||||||
|
var c = $('<canvas class="post-image"></canvas>');
|
||||||
$(e).parent().prepend(c);
|
$(e).parent().prepend(c);
|
||||||
c.attr('width', $(e).width());
|
c.attr('width', $(e).width());
|
||||||
c.attr('height',$(e).height());
|
c.attr('height',$(e).height());
|
||||||
@ -32,7 +35,7 @@ function unanimate_gif(e) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function no_animated_gif() {
|
function no_animated_gif() {
|
||||||
var anim_gifs = $('img.post-image[src$=".gif"]');
|
var anim_gifs = $('img.post-image[src$=".gif"], img.thread-image[src$=".gif"]');
|
||||||
localStorage.no_animated_gif = true;
|
localStorage.no_animated_gif = true;
|
||||||
$('#no-animated-gif>a').text(_('Animate GIFs'));
|
$('#no-animated-gif>a').text(_('Animate GIFs'));
|
||||||
$('#no-animated-gif>input').prop('checked', true);
|
$('#no-animated-gif>input').prop('checked', true);
|
||||||
@ -48,7 +51,7 @@ function animated_gif() {
|
|||||||
$('#no-animated-gif>input').prop('checked', false);
|
$('#no-animated-gif>input').prop('checked', false);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (active_page == 'thread' || active_page == 'index' || active_page == 'ukko') {
|
if (active_page == 'thread' || active_page == 'index' || active_page == 'ukko' || active_page == 'catalog') {
|
||||||
$(function(){
|
$(function(){
|
||||||
var selector, event;
|
var selector, event;
|
||||||
if (window.Options && Options.get_tab('general')) {
|
if (window.Options && Options.get_tab('general')) {
|
||||||
|
Loading…
Reference in New Issue
Block a user