From 682ebd64ca660c601dbff26aa96420004e1cff3b Mon Sep 17 00:00:00 2001 From: czaks Date: Wed, 25 Dec 2013 18:28:45 +0100 Subject: [PATCH] customize javascripts to run on catalog --- js/expand-all-images.js | 1 + js/forced-anon.js | 1 + js/toggle-images.js | 2 +- js/toggle-locked-threads.js | 1 + 4 files changed, 4 insertions(+), 1 deletion(-) diff --git a/js/expand-all-images.js b/js/expand-all-images.js index 6cca09c8..b3a2d4af 100644 --- a/js/expand-all-images.js +++ b/js/expand-all-images.js @@ -14,6 +14,7 @@ * */ +if (active_page == 'ukko' || active_page == 'thread' || active_page == 'index') onready(function(){ $('hr:first').before('
'); $('div#expand-all-images a') diff --git a/js/forced-anon.js b/js/forced-anon.js index 6ae43882..74f2dffb 100644 --- a/js/forced-anon.js +++ b/js/forced-anon.js @@ -11,6 +11,7 @@ * */ +if (active_page == 'ukko' || active_page == 'thread' || active_page == 'index') $(document).ready(function() { var force_anon = function() { if($(this).children('a.capcode').length == 0) { diff --git a/js/toggle-images.js b/js/toggle-images.js index 9927031a..bd92e366 100644 --- a/js/toggle-images.js +++ b/js/toggle-images.js @@ -71,7 +71,7 @@ $(document).ready(function(){ }); if (hide_images) { - $('img.post-image').each(hideImage); + $('img.post-image, .catalog-theme .thread img').each(hideImage); show_hide_hide_images_buttons(); } diff --git a/js/toggle-locked-threads.js b/js/toggle-locked-threads.js index fcef0a7a..fc14ea2e 100644 --- a/js/toggle-locked-threads.js +++ b/js/toggle-locked-threads.js @@ -10,6 +10,7 @@ * */ +if (active_page == 'ukko' || active_page == 'index') $(document).ready(function(){ if($('div.banner').length != 0) return; // not index