1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-29 09:44:28 +01:00

customize javascripts to run on catalog

This commit is contained in:
czaks 2013-12-25 18:28:45 +01:00
parent a231c89983
commit 682ebd64ca
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