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