$this.resetpass(formData)
})
+ $(document).on("submit", "#Bastide_register_form,#Bastide_forgotpass_form,#Bastide_resetpass_form", function() {
+ let el = $(this).find('button[type="submit"]')
+ $this.disabledSubmitButton(el)
+ })
+
/*$(document).on("submit", 'form', function (e) {
e.preventDefault()
let action = $(this).attr('action')
error: function(xhr, status, error) {
let errorsMessage = JSON.parse(xhr.responseText);
$this.displayErrors(errorsMessage)
+ },
+ complete: function() {
+ $this.disabledSubmitButton($("button[type=submit]"))
}
});
},
$this.updateDataContent()
},
error: function(xhr, status, error) {
-
let errorsMessage = JSON.parse(xhr.responseText);
$this.displayErrors(errorsMessage)
+ },
+ complete: function() {
+ $this.disabledSubmitButton($("button[type=submit]"))
}
})
},
return window.location.hash === '#/cart/validate' ? 990 : 1190; // Validate modal is narrower than main cart
},
+ disabledSubmitButton: function(el) {
+ $(el).toggleClass("disabled")
+ }
+
};
}
#Bastide_auth_form {
- padding: 0 58px 50px;
+ padding: 0 50px 50px;
* {
font-size: 12px;
border: 1px solid #000000;
}
+ button[type=submit].disabled {
+ opacity: 0.8;
+ pointer-events: none;
+ }
+
input[type=checkbox] {
width: 16px;
height: 16px;
margin: 0 10px 0 0;
position: relative;
flex-shrink: 0;
+ font-size: 13px;
&:checked::before {
content: url('../images/valid.svg');
.cta {
width: 100%;
height: 40px;
- max-width: 220px;
text-transform: uppercase;
text-align: center;
font-size: 14px;
margin: 0 auto;
cursor: pointer;
font-weight: 700;
+ &:not(#send_email_forgotpass) {
+ max-width: 220px;
+ }
}
#login, #create-account, #forgot-password {
p:not(:last-child) {
margin-bottom: 20px;
}
+ a {
+ text-wrap: nowrap;
+ }
}
}