From 0b7f9dab3beb70d8d230d9f05122b1ad51a54ae1 Mon Sep 17 00:00:00 2001 From: Zixaphir Date: Tue, 9 Dec 2014 06:20:53 -0700 Subject: [PATCH] Fix QR post-type automatic selection Will no longer default to "new thread" when opening a thread. --- CHANGELOG.md | 2 ++ builds/appchan-x.user.js | 2 +- builds/crx/script.js | 2 +- src/Posting/QR.coffee | 2 +- 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 203a82814..f4722860c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,5 @@ +- Fix QR post-type automatic selection + ### v2.9.39 *2014-12-09* diff --git a/builds/appchan-x.user.js b/builds/appchan-x.user.js index 745c2d9ca..724dd0497 100644 --- a/builds/appchan-x.user.js +++ b/builds/appchan-x.user.js @@ -9150,7 +9150,7 @@ $.rmAll(list); $.add(list, options); list.value = val; - if (list.value) { + if (!list.value) { return; } list.value = g.VIEW === 'thread' ? g.THREADID : 'new'; diff --git a/builds/crx/script.js b/builds/crx/script.js index e821428a3..32a578ffa 100644 --- a/builds/crx/script.js +++ b/builds/crx/script.js @@ -9175,7 +9175,7 @@ $.rmAll(list); $.add(list, options); list.value = val; - if (list.value) { + if (!list.value) { return; } list.value = g.VIEW === 'thread' ? g.THREADID : 'new'; diff --git a/src/Posting/QR.coffee b/src/Posting/QR.coffee index f4bd747f0..6fd8ba687 100644 --- a/src/Posting/QR.coffee +++ b/src/Posting/QR.coffee @@ -397,7 +397,7 @@ QR = $.rmAll list $.add list, options list.value = val - return if list.value + return unless list.value # Fix the value if the option disappeared. list.value = if g.VIEW is 'thread' g.THREADID