From dc0553bc47fd74d06b69460b2b6b2a2f1890468f Mon Sep 17 00:00:00 2001 From: Fredrick Brennan Date: Sun, 10 May 2015 12:51:35 +0800 Subject: [PATCH] Catalog: click to scroll thread --- js/catalog.js | 10 ++++++++++ stylesheets/style.css | 3 --- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/js/catalog.js b/js/catalog.js index 59b57f6c..3ded2141 100644 --- a/js/catalog.js +++ b/js/catalog.js @@ -36,4 +36,14 @@ if (active_page == 'catalog') $(function(){ if (catalog.image_size !== undefined) { $('#image_size').val(catalog.image_size).trigger('change'); } + + $('div.thread').on('click', function(e) { + if ($(this).css('overflow-y') === 'hidden') { + $(this).css('overflow-y', 'auto'); + $(this).css('width', '100%'); + } else { + $(this).css('overflow-y', 'hidden'); + $(this).css('width', 'auto'); + } + }); }); diff --git a/stylesheets/style.css b/stylesheets/style.css index af8a3d8b..1c33f5d0 100644 --- a/stylesheets/style.css +++ b/stylesheets/style.css @@ -1244,9 +1244,6 @@ div.boardlist a { div.mix { display: inline-block; } -.theme-catalog div.thread:hover { - overflow-y: auto; width: 100% -} /* Mona Font */ .aa {