From cbc512c46fedabc7edfdb181581492738bb7ddf5 Mon Sep 17 00:00:00 2001 From: Jordan Bates Date: Mon, 6 May 2013 22:22:24 -0700 Subject: [PATCH] Fix #58 --- CHANGELOG.md | 3 +++ builds/4chan-X.js | 7 +++++-- builds/4chan-X.user.js | 7 +++++-- builds/crx/script.js | 7 +++++-- src/General/Header.coffee | 7 +++++-- 5 files changed, 23 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 26187d758..e66c3d01b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +seaweedchan: +- Fix catalog content sometimes disappearing due to issue with 4chan's javascript + zixaphir: - Re-added `Quote Hash Navigation` option diff --git a/builds/4chan-X.js b/builds/4chan-X.js index 6e2b99553..631169da2 100644 --- a/builds/4chan-X.js +++ b/builds/4chan-X.js @@ -1518,8 +1518,11 @@ if (a = $("a[href*='/" + g.BOARD + "/']", $.id('boardNavDesktopFoot'))) { a.className = 'current'; } - cs = $.id('settingsWindowLink'); - cs.textContent = 'Catalog Settings'; + cs = $.el('a', { + id: 'settingsWindowLink', + href: 'javascript:;', + textContent: 'Catalog Settings' + }); if (g.VIEW === 'catalog') { _this.addShortcut(cs); } diff --git a/builds/4chan-X.user.js b/builds/4chan-X.user.js index d32784a3e..e36504409 100644 --- a/builds/4chan-X.user.js +++ b/builds/4chan-X.user.js @@ -1514,8 +1514,11 @@ if (a = $("a[href*='/" + g.BOARD + "/']", $.id('boardNavDesktopFoot'))) { a.className = 'current'; } - cs = $.id('settingsWindowLink'); - cs.textContent = 'Catalog Settings'; + cs = $.el('a', { + id: 'settingsWindowLink', + href: 'javascript:;', + textContent: 'Catalog Settings' + }); if (g.VIEW === 'catalog') { _this.addShortcut(cs); } diff --git a/builds/crx/script.js b/builds/crx/script.js index e259c718e..9a74ec4d9 100644 --- a/builds/crx/script.js +++ b/builds/crx/script.js @@ -1517,8 +1517,11 @@ if (a = $("a[href*='/" + g.BOARD + "/']", $.id('boardNavDesktopFoot'))) { a.className = 'current'; } - cs = $.id('settingsWindowLink'); - cs.textContent = 'Catalog Settings'; + cs = $.el('a', { + id: 'settingsWindowLink', + href: 'javascript:;', + textContent: 'Catalog Settings' + }); if (g.VIEW === 'catalog') { _this.addShortcut(cs); } diff --git a/src/General/Header.coffee b/src/General/Header.coffee index 253958f07..56ab55014 100644 --- a/src/General/Header.coffee +++ b/src/General/Header.coffee @@ -73,8 +73,11 @@ Header = if a = $ "a[href*='/#{g.BOARD}/']", $.id 'boardNavDesktopFoot' a.className = 'current' - cs = $.id('settingsWindowLink') - cs.textContent = 'Catalog Settings' + cs = $.el 'a', + id: 'settingsWindowLink' + href: 'javascript:;' + textContent: 'Catalog Settings' + @addShortcut cs if g.VIEW is 'catalog' Header.setFooterVisibility Conf['Bottom Board List']