Make bridge app more correct: only activated when GET-ing pages which can have comments and don't get confused by other apps POSTs. Simplify code along the way.
This commit is contained in:
parent
b9d64d6bd2
commit
b00107e3b8
2 changed files with 16 additions and 14 deletions
|
|
@ -1,12 +1,10 @@
|
|||
<hr />
|
||||
|
||||
% notices_handler
|
||||
% # XXX should post to bridge_post or similar
|
||||
<form action="" method="post">
|
||||
<textarea name="comment_text" id="comment_text" cols="80" rows="16">%($"saved_comment_text%)</textarea>
|
||||
<br />
|
||||
<input type="hidden" name="document_uri" value="%($req_path%)" />
|
||||
<input type="submit" name="post_comment" value="Post a comment" />
|
||||
<input type="submit" name="bridge_post" value="Post a comment" />
|
||||
|
||||
% if(~ $#logged_user 0 && ! ~ $#allow_new_user_comments 0) {
|
||||
<label>New user name:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue