From 455a6c9dfe5d16ebe1652cb8dd71883a623e7242 Mon Sep 17 00:00:00 2001 From: Aaron Parecki Date: Sat, 28 May 2016 13:00:32 -0700 Subject: don't restore previous note state if reply URL is set --- views/new-post.php | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/views/new-post.php b/views/new-post.php index 18e81d1..0d79767 100644 --- a/views/new-post.php +++ b/views/new-post.php @@ -270,10 +270,6 @@ $(function(){ } }); - if($("#note_in_reply_to").val() != "") { - $("#note_in_reply_to").change(); - } - $("#btn_post").click(function(){ // Collect all the syndication buttons that are pressed @@ -452,7 +448,12 @@ $(function(){ bind_syndication_buttons(); - restoreNoteState(); + if($("#note_in_reply_to").val() != "") { + $("#note_in_reply_to").change(); + } else { + restoreNoteState(); + } + }); -- cgit v1.2.3