Browse Source

don't restore previous note state if reply URL is set

pull/52/head
Aaron Parecki 8 years ago
parent
commit
455a6c9dfe
1 changed files with 6 additions and 5 deletions
  1. +6
    -5
      views/new-post.php

+ 6
- 5
views/new-post.php View File

@ -270,10 +270,6 @@ $(function(){
} }
}); });
if($("#note_in_reply_to").val() != "") {
$("#note_in_reply_to").change();
}
$("#btn_post").click(function(){ $("#btn_post").click(function(){
// Collect all the syndication buttons that are pressed // Collect all the syndication buttons that are pressed
@ -452,7 +448,12 @@ $(function(){
bind_syndication_buttons(); bind_syndication_buttons();
restoreNoteState();
if($("#note_in_reply_to").val() != "") {
$("#note_in_reply_to").change();
} else {
restoreNoteState();
}
}); });
<?= partial('partials/syndication-js') ?> <?= partial('partials/syndication-js') ?>

Loading…
Cancel
Save