[-] MO productcomments: confirmation message takes moderation mode into account
This commit is contained in:
1 parent
214b844ef7
commit
31697fde3c
3 files changed
+6
-3
No files matched your search
@@ -70,7 +70,7 @@ $(function() {
|
|||||||
$.fancybox.close();
|
$.fancybox.close();
|
||||||
var buttons = {};
|
var buttons = {};
|
||||||
buttons[productcomment_ok] = "productcommentRefreshPage";
|
buttons[productcomment_ok] = "productcommentRefreshPage";
|
||||||
fancyChooseBox(productcomment_added, productcomment_title, buttons);
|
fancyChooseBox(moderation_active ? productcomment_added_moderation : productcomment_added, productcomment_title, buttons);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -755,7 +755,8 @@ class ProductComments extends Module
|
|||||||
'mediumSize' => Image::getSize(ImageType::getFormatedName('medium')),
|
'mediumSize' => Image::getSize(ImageType::getFormatedName('medium')),
|
||||||
'nbComments' => (int)ProductComment::getCommentNumber((int)Tools::getValue('id_product')),
|
'nbComments' => (int)ProductComment::getCommentNumber((int)Tools::getValue('id_product')),
|
||||||
'productcomments_controller_url' => $this->context->link->getModuleLink('productcomments'),
|
'productcomments_controller_url' => $this->context->link->getModuleLink('productcomments'),
|
||||||
'productcomments_url_rewriting_activated' => Configuration::get('PS_REWRITING_SETTINGS', 0)
|
'productcomments_url_rewriting_activated' => Configuration::get('PS_REWRITING_SETTINGS', 0),
|
||||||
|
'moderation_active' => (int)Configuration::get('PRODUCT_COMMENTS_MODERATE')
|
||||||
));
|
));
|
||||||
|
|
||||||
$this->context->controller->pagination((int)ProductComment::getCommentNumber((int)Tools::getValue('id_product')));
|
$this->context->controller->pagination((int)ProductComment::getCommentNumber((int)Tools::getValue('id_product')));
|
||||||
|
|||||||
@@ -27,9 +27,11 @@ var productcomments_controller_url = '{$productcomments_controller_url}';
|
|||||||
var confirm_report_message = "{l s='Are you sure you want report this comment?' mod='productcomments'}";
|
var confirm_report_message = "{l s='Are you sure you want report this comment?' mod='productcomments'}";
|
||||||
var secure_key = "{$secure_key}";
|
var secure_key = "{$secure_key}";
|
||||||
var productcomments_url_rewrite = '{$productcomments_url_rewriting_activated}';
|
var productcomments_url_rewrite = '{$productcomments_url_rewriting_activated}';
|
||||||
var productcomment_added = '{l s='Your comment has been added !' mod='productcomments'}';
|
var productcomment_added = '{l s='Your comment has been added!' mod='productcomments'}';
|
||||||
|
var productcomment_added_moderation = '{l s='Your comment has been added and will be available once approved by a moderator' mod='productcomments'}';
|
||||||
var productcomment_title = '{l s='New comment' mod='productcomments'}';
|
var productcomment_title = '{l s='New comment' mod='productcomments'}';
|
||||||
var productcomment_ok = '{l s='OK' mod='productcomments'}';
|
var productcomment_ok = '{l s='OK' mod='productcomments'}';
|
||||||
|
var moderation_active = {$moderation_active};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div id="idTab5">
|
<div id="idTab5">
|
||||||
|
|||||||
Reference in new issue
Block a user