From 76050db6ba5cc58475860a8f35df19b78ddbf612 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Wed, 8 Apr 2015 17:53:58 -0700 Subject: [PATCH] Fix missing /f/ tag selector when posting new thread from within thread. --- src/General/css/style.css | 3 ++- src/Posting/QR.coffee | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/General/css/style.css b/src/General/css/style.css index d50ec0e8c..f3d1bbc5b 100755 --- a/src/General/css/style.css +++ b/src/General/css/style.css @@ -1198,7 +1198,8 @@ input[name="Default Volume"] { } #qr.forced-anon input[data-name="name"]:not(.force-show), #qr.forced-anon input[data-name="sub"]:not(.force-show), -#qr.reply-to-thread input[data-name="sub"]:not(.force-show) { +#qr.reply-to-thread input[data-name="sub"]:not(.force-show), +#qr.reply-to-thread select[name="filetag"] { display: none; } #qr textarea.field { diff --git a/src/Posting/QR.coffee b/src/Posting/QR.coffee index d47f6b362..6e7f759e7 100644 --- a/src/Posting/QR.coffee +++ b/src/Posting/QR.coffee @@ -482,7 +482,7 @@ QR = QR.setCustomCooldown customCooldownEnabled $.sync 'customCooldownEnabled', QR.setCustomCooldown - if g.BOARD.ID is 'f' and g.VIEW isnt 'thread' + if g.BOARD.ID is 'f' nodes.flashTag = $.el 'select', name: 'filetag' @@ -569,10 +569,10 @@ QR = post = QR.posts[0] post.forceSave() - if g.BOARD.ID is 'f' and g.VIEW isnt 'thread' - filetag = QR.nodes.flashTag.value threadID = post.thread thread = g.BOARD.threads[threadID] + if g.BOARD.ID is 'f' and threadID is 'new' + filetag = QR.nodes.flashTag.value # prevent errors if threadID is 'new'