remove unnecessary cancel button class.

svn path=/plone.app.discussion/trunk/; revision=33234
This commit is contained in:
Timo Stollenwerk 2010-01-19 08:26:41 +00:00
parent 3ceb9e1e4f
commit 548c1debee

View File

@ -53,18 +53,6 @@ def commentButtonActionFactory(request, field):
return button 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): class CommentForm(extensible.ExtensibleForm, form.Form):
ignoreContext = True # don't use context to get widget data 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_name'].mode = interfaces.HIDDEN_MODE
self.widgets['author_email'].mode = interfaces.HIDDEN_MODE self.widgets['author_email'].mode = interfaces.HIDDEN_MODE
self.buttons['comment'].actionFactory = commentButtonActionFactory self.buttons['comment'].actionFactory = commentButtonActionFactory
self.buttons['cancel'].actionFactory = cancelButtonActionFactory
# XXX: Since we are not using the author_email field in the # 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 # current state, we hide it by default. But we keep the field for