/* hide all the “create reply” forms until a link is clicked. */
function addCommentLinks() {
+ if (!isOnline()) {
+ return;
+ }
$("#sone .post").each(function() {
postId = $(this).attr("id");
commentElement = (function(postId) {
</div>
</div>
<%/foreach>
- <div class="create-reply">
- <form method="post" action="createReply.html">
- <input type="hidden" name="formPassword" value="<% formPassword|html>" />
- <input type="hidden" name="returnPage" value="<% request.uri|html>" />
- <input type="hidden" name="post" value="<% post.id|html>" />
- <input type="text" class="reply-input" name="text" value="" />
- <button type="submit"><%= View.Post.SendReply|l10n|html></button>
- </form>
- </div>
+ <%ifnull ! currentSone>
+ <div class="create-reply">
+ <form method="post" action="createReply.html">
+ <input type="hidden" name="formPassword" value="<% formPassword|html>" />
+ <input type="hidden" name="returnPage" value="<% request.uri|html>" />
+ <input type="hidden" name="post" value="<% post.id|html>" />
+ <input type="text" class="reply-input" name="text" value="" />
+ <button type="submit"><%= View.Post.SendReply|l10n|html></button>
+ </form>
+ </div>
+ <%/if>
</div>
</div>