Browse Source

customize javascripts to run on catalog

pull/40/head
czaks 10 years ago
parent
commit
a4d3aedab8
  1. 1
      js/expand-all-images.js
  2. 1
      js/forced-anon.js
  3. 2
      js/toggle-images.js
  4. 1
      js/toggle-locked-threads.js

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

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

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

1
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

Loading…
Cancel
Save