diff options
| author | Fredrick Brennan <admin@8chan.co> | 2015-05-10 12:51:35 +0800 |
|---|---|---|
| committer | czaks <marcin@6irc.net> | 2016-05-06 14:53:17 +0200 |
| commit | 65ea7b78c50ab3da60a541237f73b13cd2e7e6d8 (patch) | |
| tree | fedbfb234aa0561a55bf4fa82bda9c570d639565 /js | |
| parent | 3515fdabe713fc9143a833d0f6a889ce150142aa (diff) | |
Catalog: click to scroll thread
Diffstat (limited to 'js')
| -rw-r--r-- | js/catalog.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/js/catalog.js b/js/catalog.js index 065fba7b..9adaeaef 100644 --- a/js/catalog.js +++ b/js/catalog.js @@ -35,4 +35,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');
+ }
+ });
});
|
