comment_new.go, commento.js: don't refresh when creating comments

This commit is contained in:
Adhityaa Chandrasekar
2019-01-30 22:19:16 -05:00
parent 42b452b9f8
commit f846935a2a
2 changed files with 69 additions and 30 deletions

View File

@@ -139,5 +139,5 @@ func commentNewHandler(w http.ResponseWriter, r *http.Request) {
return
}
bodyMarshal(w, response{"success": true, "commentHex": commentHex, "state": state})
bodyMarshal(w, response{"success": true, "commentHex": commentHex, "state": state, "html": markdownToHtml(*x.Markdown)})
}