[FIX] website_forum: ask reason when refuse a post.

Call was done in ajax to speed up the moderation and don't wait refresh at each accpet/refuse post.
But the problem is that when you refuse a post, you need to be redirected to a new page to ask more
infos about the reason.
The fix is to do the request in ajax only when it is an 'accepted' post.

This commits fixes odoo/odoo@14462
This commit is contained in:
Jeremy Kersten
2016-11-25 09:13:33 +01:00
parent 7d4ac39c4c
commit 4fa39c0e19
@@ -138,7 +138,7 @@ if(!$('.website_forum').length) {
});
});
$('.o_js_validation_queue a').on('click', function (ev) {
$(".o_js_validation_queue a[href*='/validate']").on('click', function (ev) {
ev.preventDefault();
var $link = $(ev.currentTarget);
var self = $(this);