[FIX] website_forum: comment deletion now working by calling the right url
This commit is contained in:
parent
5d1b7d8a31
commit
2a2cbfc5ae
|
@ -91,7 +91,7 @@
|
|||
$('.comment_delete').on('click', function (ev) {
|
||||
ev.preventDefault();
|
||||
var $link = $(ev.currentTarget);
|
||||
openerp.jsonRpc($link.data('href'), 'call', {}).then(function (data) {
|
||||
openerp.jsonRpc($link.parent('form').attr('action'), 'call', {}).then(function (data) {
|
||||
$link.parents('.comment').first().remove();
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue