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

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@13878 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
fGaillard committed 2012-03-06 10:47:11 +00:00
1 parent f239c79e3a
commit 88e58f90d1
5 files changed
+20 -10

No files matched your search

@@ -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}