From 7e02db3b9b4960ef70ab29381a82fd287bafd387 Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Wed, 4 Jan 2012 18:24:39 +0100 Subject: [PATCH] Revert "Single nav.init()." This reverts commit eb8daa7b43eed20318b58370969bd75a0a53b380. --- 4chan_x.user.js | 3 ++- script.coffee | 9 ++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index ab88a68d5..9f333442a 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -3176,10 +3176,10 @@ if (conf['Quick Reply']) qr.init(); if (conf['Thread Watcher']) watcher.init(); if (conf['Keybinds']) keybinds.init(); - if (conf['Reply Navigation'] || conf['Index Navigation']) nav.init(); if (g.REPLY) { if (conf['Thread Updater']) updater.init(); if (conf['Thread Stats']) threadStats.init(); + if (conf['Reply Navigation']) nav.init(); if (conf['Post in Title']) titlePost.init(); if (conf['Unread Count']) unread.init(); if (conf['Quick Reply'] && conf['Persistent QR'] && canPost) { @@ -3190,6 +3190,7 @@ if (conf['Thread Hiding']) threadHiding.init(); if (conf['Thread Expansion']) expandThread.init(); if (conf['Comment Expansion']) expandComment.init(); + if (conf['Index Navigation']) nav.init(); } nodes = $$('.op, a + table'); _ref = g.callbacks; diff --git a/script.coffee b/script.coffee index b95954c9c..ae407abb2 100644 --- a/script.coffee +++ b/script.coffee @@ -2516,9 +2516,6 @@ Main = if conf['Keybinds'] keybinds.init() - if conf['Reply Navigation'] or conf['Index Navigation'] - nav.init() - if g.REPLY if conf['Thread Updater'] updater.init() @@ -2526,6 +2523,9 @@ Main = if conf['Thread Stats'] threadStats.init() + if conf['Reply Navigation'] + nav.init() + if conf['Post in Title'] titlePost.init() @@ -2547,6 +2547,9 @@ Main = if conf['Comment Expansion'] expandComment.init() + if conf['Index Navigation'] + nav.init() + nodes = $$ '.op, a + table' for callback in g.callbacks