From ee5e5cdf3182552a346f5fcb2e913cbfd5160b8f Mon Sep 17 00:00:00 2001 From: Jordan Bates Date: Thu, 25 Apr 2013 08:10:59 -0700 Subject: [PATCH] Make label reflect functionality --- builds/4chan-X.js | 7 +++---- builds/4chan-X.user.js | 7 +++---- builds/crx/script.js | 7 +++---- src/config.coffee | 2 +- src/features/misc/header.coffee | 5 ++--- 5 files changed, 12 insertions(+), 16 deletions(-) diff --git a/builds/4chan-X.js b/builds/4chan-X.js index 559627220..3110b7e17 100644 --- a/builds/4chan-X.js +++ b/builds/4chan-X.js @@ -229,7 +229,7 @@ 'Header auto-hide': false, 'Bottom Header': false, 'Header catalog links': false, - 'Bottom Board List': false, + 'Bottom Board List': true, 'Custom Board Navigation': true }, boardnav: '[ toggle-all ] [current-title]', @@ -4901,7 +4901,7 @@ innerHTML: ' Custom board navigation' }); footerToggler = $.el('label', { - innerHTML: " Bottom original board list" + innerHTML: " Hide bottom board list" }); editCustomNav = $.el('a', { textContent: 'Edit custom board navigation', @@ -4974,8 +4974,7 @@ if (g.VIEW === 'catalog') { _this.addShortcut(cs); } - Header.setFooterVisibility(Conf['Footer auto-hide']); - $.sync('Footer auto-hide', Header.setFooterVisibility); + Header.setFooterVisibility(Conf['Bottom Board List']); return $.sync('Bottom Board List', Header.setFooterVisibility); }); }, diff --git a/builds/4chan-X.user.js b/builds/4chan-X.user.js index e2cf2d2c6..3cfec8202 100644 --- a/builds/4chan-X.user.js +++ b/builds/4chan-X.user.js @@ -230,7 +230,7 @@ 'Header auto-hide': false, 'Bottom Header': false, 'Header catalog links': false, - 'Bottom Board List': false, + 'Bottom Board List': true, 'Custom Board Navigation': true }, boardnav: '[ toggle-all ] [current-title]', @@ -4897,7 +4897,7 @@ innerHTML: ' Custom board navigation' }); footerToggler = $.el('label', { - innerHTML: " Bottom original board list" + innerHTML: " Hide bottom board list" }); editCustomNav = $.el('a', { textContent: 'Edit custom board navigation', @@ -4970,8 +4970,7 @@ if (g.VIEW === 'catalog') { _this.addShortcut(cs); } - Header.setFooterVisibility(Conf['Footer auto-hide']); - $.sync('Footer auto-hide', Header.setFooterVisibility); + Header.setFooterVisibility(Conf['Bottom Board List']); return $.sync('Bottom Board List', Header.setFooterVisibility); }); }, diff --git a/builds/crx/script.js b/builds/crx/script.js index 74840870d..2008409e6 100644 --- a/builds/crx/script.js +++ b/builds/crx/script.js @@ -127,7 +127,7 @@ 'Header auto-hide': false, 'Bottom Header': false, 'Header catalog links': false, - 'Bottom Board List': false, + 'Bottom Board List': true, 'Custom Board Navigation': true }, boardnav: '[ toggle-all ] [current-title]', @@ -4761,7 +4761,7 @@ innerHTML: ' Custom board navigation' }); footerToggler = $.el('label', { - innerHTML: " Bottom original board list" + innerHTML: " Hide bottom board list" }); editCustomNav = $.el('a', { textContent: 'Edit custom board navigation', @@ -4834,8 +4834,7 @@ if (g.VIEW === 'catalog') { _this.addShortcut(cs); } - Header.setFooterVisibility(Conf['Footer auto-hide']); - $.sync('Footer auto-hide', Header.setFooterVisibility); + Header.setFooterVisibility(Conf['Bottom Board List']); return $.sync('Bottom Board List', Header.setFooterVisibility); }); }, diff --git a/src/config.coffee b/src/config.coffee index 2a39483ca..dbb1fca15 100644 --- a/src/config.coffee +++ b/src/config.coffee @@ -412,7 +412,7 @@ http://iqdb.org/?url=%TURL 'Header auto-hide': false 'Bottom Header': false 'Header catalog links': false - 'Bottom Board List': false + 'Bottom Board List': true 'Custom Board Navigation': true boardnav: '[ toggle-all ] [current-title]' diff --git a/src/features/misc/header.coffee b/src/features/misc/header.coffee index 52403a3d0..c252b99b9 100644 --- a/src/features/misc/header.coffee +++ b/src/features/misc/header.coffee @@ -14,7 +14,7 @@ Header = customNavToggler = $.el 'label', innerHTML: ' Custom board navigation' footerToggler = $.el 'label', - innerHTML: " Bottom original board list" + innerHTML: " Hide bottom board list" editCustomNav = $.el 'a', textContent: 'Edit custom board navigation' href: 'javascript:;' @@ -77,8 +77,7 @@ Header = cs.textContent = 'Catalog Settings' @addShortcut cs if g.VIEW is 'catalog' - Header.setFooterVisibility Conf['Footer auto-hide'] - $.sync 'Footer auto-hide', Header.setFooterVisibility + Header.setFooterVisibility Conf['Bottom Board List'] $.sync 'Bottom Board List', Header.setFooterVisibility bar: $.el 'div',