hide reply and cancel button with css when JS is disabled.
svn path=/plone.app.discussion/trunk/; revision=29403
This commit is contained in:
parent
d2ceb44a0c
commit
defb4b91c4
@ -80,7 +80,7 @@ class ReplyButtonAction(button.ButtonAction):
|
|||||||
|
|
||||||
def replyButtonActionFactory(request, field):
|
def replyButtonActionFactory(request, field):
|
||||||
button = ReplyButtonAction(request, field)
|
button = ReplyButtonAction(request, field)
|
||||||
button.klass += " context"
|
button.klass += " context hide"
|
||||||
return button
|
return button
|
||||||
|
|
||||||
class CancelButtonAction(button.ButtonAction):
|
class CancelButtonAction(button.ButtonAction):
|
||||||
@ -89,7 +89,7 @@ class CancelButtonAction(button.ButtonAction):
|
|||||||
|
|
||||||
def cancelButtonActionFactory(request, field):
|
def cancelButtonActionFactory(request, field):
|
||||||
button = ReplyButtonAction(request, field)
|
button = ReplyButtonAction(request, field)
|
||||||
button.klass += " standalone"
|
button.klass += " standalone hide"
|
||||||
return button
|
return button
|
||||||
|
|
||||||
|
|
||||||
|
@ -72,8 +72,8 @@ jq(document).ready(function() {
|
|||||||
reply_form.find("input[name='form.buttons.comment']").css("display", "none");
|
reply_form.find("input[name='form.buttons.comment']").css("display", "none");
|
||||||
|
|
||||||
/* Show the reply and cancel buttons. */
|
/* Show the reply and cancel buttons. */
|
||||||
reply_form.find("input[name='form.buttons.reply']").css("display", "inline");
|
reply_form.find("input[name='form.buttons.reply']").removeClass("hide");
|
||||||
reply_form.find("input[name='form.buttons.cancel']").css("display", "inline");
|
reply_form.find("input[name='form.buttons.cancel']").removeClass("hide");
|
||||||
|
|
||||||
/* Show the reply layer with a slide down effect */
|
/* Show the reply layer with a slide down effect */
|
||||||
reply_div.slideDown("slow");
|
reply_div.slideDown("slow");
|
||||||
|
@ -1,5 +1,8 @@
|
|||||||
/* plone.app.discussion stylesheet */
|
/* plone.app.discussion stylesheet */
|
||||||
|
|
||||||
|
.hide {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
/* Comments Viewlet
|
/* Comments Viewlet
|
||||||
---------------------------------------------------------------- */
|
---------------------------------------------------------------- */
|
||||||
|
Loading…
Reference in New Issue
Block a user