summaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
Diffstat (limited to 'views')
-rw-r--r--views/new-post.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/views/new-post.php b/views/new-post.php
index 68460d0..d75d6b4 100644
--- a/views/new-post.php
+++ b/views/new-post.php
@@ -310,6 +310,14 @@ $(function(){
$("#note_in_reply_to").on('change', function(){
var reply_to = $("#note_in_reply_to").val();
+
+ if(reply_to == "") {
+ $(".reply-section").addClass("hidden");
+ $(".reply-context").addClass("hidden");
+ $("#expand-reply").removeClass("hidden");
+ return;
+ }
+
$(".reply-section .loading").removeClass("hidden");
$.get("/reply/preview", {url:reply_to}, function(data){