[*] MO : productComments - It's now possible to delete comments, beside moderation
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@8237 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
1 parent
f59d648bda
commit
6616d46842
5 files changed
+110
-2
No files matched your search
@@ -32,6 +32,14 @@ function getCommentForm()
|
||||
return (document.comment_form);
|
||||
}
|
||||
|
||||
function getCommentDeleteForm()
|
||||
{
|
||||
if (document.forms)
|
||||
return (document.forms['delete_comment_form']);
|
||||
else
|
||||
return (document.delete_comment_form);
|
||||
}
|
||||
|
||||
function acceptComment(id)
|
||||
{
|
||||
var form = getCommentForm();
|
||||
@@ -51,6 +59,19 @@ function deleteComment(id)
|
||||
form.submit();
|
||||
}
|
||||
|
||||
function delComment(id, confirmation)
|
||||
{
|
||||
var answer = confirm(confirmation);
|
||||
if (answer)
|
||||
{
|
||||
var form = getCommentDeleteForm();
|
||||
if (id)
|
||||
form.elements['delete_id_product_comment'].value = id;
|
||||
form.elements['delete_action'].value = 'delete';
|
||||
form.submit();
|
||||
}
|
||||
}
|
||||
|
||||
function getCriterionForm()
|
||||
{
|
||||
if (document.forms)
|
||||
|
||||
Reference in new issue
Block a user