Fix mode menu 'approve' option.
* Fix routing error in respond_with (didn't use /moderator namespace). * Fix /moderator/posts/approvals.json response to return full PostApproval object, not just a success/failure message. * Simplify the javascript a bit (use $.post instead of $.ajax).
This commit is contained in:
@@ -1 +0,0 @@
|
||||
{"success": <%= @post.errors.empty? %>, "reason": <%= raw @post.errors.full_messages.join("; ").to_json %>}
|
||||
Reference in New Issue
Block a user