remove unnecessary cancel button class.
svn path=/plone.app.discussion/trunk/; revision=33234
This commit is contained in:
parent
3ceb9e1e4f
commit
548c1debee
@ -53,18 +53,6 @@ def commentButtonActionFactory(request, field):
|
||||
return button
|
||||
|
||||
|
||||
class CancelButtonAction(button.ButtonAction):
|
||||
"""Cancel button with Plone CSS style.
|
||||
"""
|
||||
|
||||
def cancelButtonActionFactory(request, field):
|
||||
"""Cancel button action factory.
|
||||
"""
|
||||
button = CancelButtonAction(request, field)
|
||||
button.klass += " standalone hide"
|
||||
return button
|
||||
|
||||
|
||||
class CommentForm(extensible.ExtensibleForm, form.Form):
|
||||
|
||||
ignoreContext = True # don't use context to get widget data
|
||||
@ -88,7 +76,6 @@ class CommentForm(extensible.ExtensibleForm, form.Form):
|
||||
self.widgets['author_name'].mode = interfaces.HIDDEN_MODE
|
||||
self.widgets['author_email'].mode = interfaces.HIDDEN_MODE
|
||||
self.buttons['comment'].actionFactory = commentButtonActionFactory
|
||||
self.buttons['cancel'].actionFactory = cancelButtonActionFactory
|
||||
|
||||
# XXX: Since we are not using the author_email field in the
|
||||
# current state, we hide it by default. But we keep the field for
|
||||
|
Loading…
Reference in New Issue
Block a user