hide reply and cancel button with css when JS is disabled.

svn path=/plone.app.discussion/trunk/; revision=29403
This commit is contained in:
Timo Stollenwerk 2009-08-26 21:53:34 +00:00
parent d2ceb44a0c
commit defb4b91c4
3 changed files with 7 additions and 4 deletions

View File

@ -80,7 +80,7 @@ class ReplyButtonAction(button.ButtonAction):
def replyButtonActionFactory(request, field):
button = ReplyButtonAction(request, field)
button.klass += " context"
button.klass += " context hide"
return button
class CancelButtonAction(button.ButtonAction):
@ -89,7 +89,7 @@ class CancelButtonAction(button.ButtonAction):
def cancelButtonActionFactory(request, field):
button = ReplyButtonAction(request, field)
button.klass += " standalone"
button.klass += " standalone hide"
return button

View File

@ -72,8 +72,8 @@ jq(document).ready(function() {
reply_form.find("input[name='form.buttons.comment']").css("display", "none");
/* Show the reply and cancel buttons. */
reply_form.find("input[name='form.buttons.reply']").css("display", "inline");
reply_form.find("input[name='form.buttons.cancel']").css("display", "inline");
reply_form.find("input[name='form.buttons.reply']").removeClass("hide");
reply_form.find("input[name='form.buttons.cancel']").removeClass("hide");
/* Show the reply layer with a slide down effect */
reply_div.slideDown("slow");

View File

@ -1,5 +1,8 @@
/* plone.app.discussion stylesheet */
.hide {
display: none;
}
/* Comments Viewlet
---------------------------------------------------------------- */