summaryrefslogtreecommitdiff
path: root/views/new-post.php
diff options
context:
space:
mode:
authorAaron Parecki <aaron@parecki.com>2016-05-28 13:00:32 -0700
committerAaron Parecki <aaron@parecki.com>2016-05-28 13:00:32 -0700
commit455a6c9dfe5d16ebe1652cb8dd71883a623e7242 (patch)
treef501a4894cd3f39710d2bde66df2dba4ef3ea3d6 /views/new-post.php
parent3193c04346db1095bc0cf1a9ee4a8964d26537f8 (diff)
don't restore previous note state if reply URL is set
Diffstat (limited to 'views/new-post.php')
-rw-r--r--views/new-post.php11
1 files 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();
+ }
+
});
<?= partial('partials/syndication-js') ?>