[-] MO : #PSFV-622 : BugFix on products comments module

This commit is contained in:
François Gaillard
2012-03-06 10:47:11 +00:00
parent 1ca413d567
commit 1f0dbd40ff
5 changed files with 20 additions and 10 deletions
@@ -1,4 +1,4 @@
{*
{*
* 2007-2012 PrestaShop
*
* NOTICE OF LICENSE
@@ -86,7 +86,12 @@
data: {action: 'sendComment', secure_key: '{/literal}{$secure_key}{literal}', review: JSON.stringify(datas)},
dataType: "json",
success: function(result){
$.fancybox.close();
if (result == 0) {
alert('{/literal}{l s='Your comment can not be posted. Please fill in all required fields.' mod='productcomments'}{literal}');
} else {
location.reload( true );
$.fancybox.close();
}
}
});
});
@@ -105,7 +110,12 @@
data: {action: 'sendComment', secure_key: '{/literal}{$secure_key}{literal}', review: JSON.stringify(datas)},
dataType: "json",
success: function(result){
$.fancybox.close();
if (result == 0) {
alert('{/literal}{l s='Your comment can not be posted. Please fill in all required fields.' mod='productcomments'}{literal}');
} else {
location.reload( true );
$.fancybox.close();
}
}
});
});
@@ -180,7 +190,7 @@
</p>
{if $allow_guests == true && $logged == 0}
<p class="text">
<label>{l s='Your name:' mod='productcomments'} <sup>*</sup>:</label>
<label>{l s='Your name' mod='productcomments'} <sup>*</sup>:</label>
<input id="commentCustomerName" name="customer_name" type="text" value=""/>
</p>
{/if}