customize javascripts to run on catalog

This commit is contained in:
czaks 2013-12-25 18:28:45 +01:00
parent 2382603b4d
commit a4d3aedab8
4 changed files with 4 additions and 1 deletions

View File

@ -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')

View File

@ -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) {

View File

@ -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();
}

View File

@ -10,6 +10,7 @@
*
*/
if (active_page == 'ukko' || active_page == 'index')
$(document).ready(function(){
if($('div.banner').length != 0)
return; // not index