From 12d095b6c3159cc63ed1f1c56ea3e3d54f180e61 Mon Sep 17 00:00:00 2001 From: Mayhem Date: Tue, 11 Feb 2014 09:49:40 +0100 Subject: [PATCH] Move .catalog-mode to doc. Conflicts: html/General/Index-navlinks.html --- src/General/Index.coffee | 6 ++---- src/General/css/style.css | 4 +++- src/General/html/Features/Index-navlinks.html | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/General/Index.coffee b/src/General/Index.coffee index a25cbd3c8..eb96d5094 100644 --- a/src/General/Index.coffee +++ b/src/General/Index.coffee @@ -220,11 +220,9 @@ Index = cb: toggleCatalogMode: -> if Conf['Index Mode'] is 'catalog' - $.addClass Index.root, 'catalog-mode' - $('#hidden-toggle', Index.navLinks).hidden = false + $.addClass doc, 'catalog-mode' else - $.rmClass Index.root, 'catalog-mode' - $('#hidden-toggle', Index.navLinks).hidden = true + $.rmClass doc, 'catalog-mode' toggleHiddenThreads: -> $('#hidden-toggle a', Index.navLinks).textContent = if Index.showHiddenThreads = !Index.showHiddenThreads 'Hide' diff --git a/src/General/css/style.css b/src/General/css/style.css index cd6728fb7..03a8b9b2f 100755 --- a/src/General/css/style.css +++ b/src/General/css/style.css @@ -471,7 +471,9 @@ hr + div.center:not(.ad-cnt):not(.topad):not(.middlead):not(.bottomad) { /* Index */ :root.index-loading .navLinks, :root.index-loading .board, -:root.index-loading .pagelist { +:root.index-loading .pagelist, +:root:not(.catalog-mode) #hidden-toggle, +:root:not(.catalog-mode) #index-size { display: none; } #index-search { diff --git a/src/General/html/Features/Index-navlinks.html b/src/General/html/Features/Index-navlinks.html index e1f921fe6..657978b5c 100644 --- a/src/General/html/Features/Index-navlinks.html +++ b/src/General/html/Features/Index-navlinks.html @@ -4,4 +4,4 @@ × - +