summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorczaks <marcin@6irc.net>2013-12-25 18:28:45 +0100
committerczaks <marcin@6irc.net>2013-12-25 18:28:45 +0100
commita4d3aedab850a2156ccc81b783aab326937983c7 (patch)
tree4a5b49567ca1b32ea12b34d33240cf61c596ee49 /js
parent2382603b4d5864e5e687dab454f931aab893a65e (diff)
customize javascripts to run on catalog
Diffstat (limited to 'js')
-rw-r--r--js/expand-all-images.js1
-rw-r--r--js/forced-anon.js1
-rw-r--r--js/toggle-images.js2
-rw-r--r--js/toggle-locked-threads.js1
4 files changed, 4 insertions, 1 deletions
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 id="expand-all-images" style="text-align:right"><a class="unimportant" href="javascript:void(0)"></a></div>');
$('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