hide the in_reply_to field inside the comment form.
svn path=/plone.app.discussion/trunk/; revision=28351
This commit is contained in:
parent
ddd8596dbd
commit
c516d6ba55
@ -85,6 +85,10 @@ class CommentForm(extensible.ExtensibleForm, form.Form):
|
|||||||
'author_name',
|
'author_name',
|
||||||
'author_email',)
|
'author_email',)
|
||||||
|
|
||||||
|
def updateWidgets(self):
|
||||||
|
super(CommentForm, self).updateWidgets()
|
||||||
|
self.widgets['in_reply_to'].mode = interfaces.HIDDEN_MODE
|
||||||
|
|
||||||
@button.buttonAndHandler(u'Comment')
|
@button.buttonAndHandler(u'Comment')
|
||||||
def handleApply(self, action):
|
def handleApply(self, action):
|
||||||
data, errors = self.extractData()
|
data, errors = self.extractData()
|
||||||
|
Loading…
Reference in New Issue
Block a user