From b28560291886a582d574b6e9a41e6a73f19b893b Mon Sep 17 00:00:00 2001 From: ccd0 Date: Sat, 14 Mar 2015 12:50:54 -0700 Subject: [PATCH] Save name when it's changed, not just when it's posted with. --- src/Posting/QR.coffee | 2 -- src/Posting/QR.post.coffee | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Posting/QR.coffee b/src/Posting/QR.coffee index 3f6fbeedc..57e65e0a0 100644 --- a/src/Posting/QR.coffee +++ b/src/Posting/QR.coffee @@ -701,8 +701,6 @@ QR = if Conf['Posting Success Notifications'] QR.notifications.push new Notice 'success', h1.textContent, 5 - QR.persona.set post - [_, threadID, postID] = h1.nextSibling.textContent.match /thread:(\d+),no:(\d+)/ postID = +postID threadID = +threadID or postID diff --git a/src/Posting/QR.post.coffee b/src/Posting/QR.post.coffee index 7f96fdcba..4d9c21183 100644 --- a/src/Posting/QR.post.coffee +++ b/src/Posting/QR.post.coffee @@ -141,6 +141,8 @@ QR.post = class # so we suffix it with '.jpg' when needed. @file.newName += '.jpg' @updateFilename() + when 'name', 'email' + QR.persona.set @ forceSave: -> return unless @ is QR.selected