remove return REQUEST statements for AJAX calls, since they are unnecessary.
svn path=/plone.app.discussion/trunk/; revision=27718
This commit is contained in:
parent
da2402865f
commit
8df9ad9cf4
@ -95,8 +95,6 @@ class DeleteComment(BrowserView):
|
|||||||
|
|
||||||
del conversation[comment_id]
|
del conversation[comment_id]
|
||||||
|
|
||||||
return context.REQUEST.RESPONSE.redirect(context.REQUEST.HTTP_REFERER)
|
|
||||||
|
|
||||||
class PublishComment(BrowserView):
|
class PublishComment(BrowserView):
|
||||||
"""Publish a comment
|
"""Publish a comment
|
||||||
"""
|
"""
|
||||||
@ -113,8 +111,6 @@ class PublishComment(BrowserView):
|
|||||||
catalog = getToolByName(comment, 'portal_catalog')
|
catalog = getToolByName(comment, 'portal_catalog')
|
||||||
catalog.reindexObject(comment)
|
catalog.reindexObject(comment)
|
||||||
|
|
||||||
return self.context.REQUEST.RESPONSE.redirect(self.context.REQUEST.HTTP_REFERER)
|
|
||||||
|
|
||||||
class BulkActionsView(BrowserView):
|
class BulkActionsView(BrowserView):
|
||||||
"""Bulk actions (unapprove, approve, delete, mark as spam).
|
"""Bulk actions (unapprove, approve, delete, mark as spam).
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user