//fixed #PSCFV-2281

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@15618 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
vAugagneur
2012-05-22 13:08:37 +00:00
parent e26ee662ef
commit 6c0e7186fb
2 changed files with 5 additions and 3 deletions
+4 -2
View File
@@ -92,6 +92,7 @@ $(function(){ldelim}
}); });
function submitFunction() function submitFunction()
{ {
$('#create_account_error').html('').hide();
//send the ajax request to the server //send the ajax request to the server
$.ajax({ $.ajax({
type: 'POST', type: 'POST',
@@ -114,8 +115,8 @@ $(function(){ldelim}
for(error in jsonData.errors) for(error in jsonData.errors)
//IE6 bug fix //IE6 bug fix
if(error != 'indexOf') if(error != 'indexOf')
errors += jsonData.errors[error] + "\n"; errors += '<li>'+jsonData.errors[error]+'</li>';
alert(errors); $('#create_account_error').html('<ol>'+errors+'</ol>').show();
} }
else else
{ {
@@ -155,6 +156,7 @@ $(function(){ldelim}
<h3>{l s='Create your account'}</h3> <h3>{l s='Create your account'}</h3>
<div class="form_content clearfix"> <div class="form_content clearfix">
<h4>{l s='Enter your e-mail address to create an account'}.</h4> <h4>{l s='Enter your e-mail address to create an account'}.</h4>
<div class="error" id="create_account_error" style="display:none"></div>
<p class="text"> <p class="text">
<label for="email_create">{l s='E-mail address'}</label> <label for="email_create">{l s='E-mail address'}</label>
<span><input type="text" id="email_create" name="email_create" value="{if isset($smarty.post.email_create)}{$smarty.post.email_create|escape:'htmlall':'UTF-8'|stripslashes}{/if}" class="account_input" /></span> <span><input type="text" id="email_create" name="email_create" value="{if isset($smarty.post.email_create)}{$smarty.post.email_create|escape:'htmlall':'UTF-8'|stripslashes}{/if}" class="account_input" /></span>
+1 -1
View File
@@ -864,7 +864,7 @@ table#cart_summary .gift-icon {
#authentication #create-account_form fieldset, #authentication #create-account_form fieldset,
#authentication #login_form fieldset { #authentication #login_form fieldset {
height: 170px height: 200px
} }
#authentication #create-account_form .form_content, #authentication #create-account_form .form_content,