[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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user