VRFS584
This commit is contained in:
parent
0140ba67cb
commit
141b39eda3
|
|
@ -80,11 +80,16 @@
|
|||
function handleUpdateEmail() {
|
||||
resetForm();
|
||||
|
||||
$('#account-edit-email-submit').addClass('button-disabled');
|
||||
$('#account-edit-email-submit').bind('click', false);
|
||||
|
||||
$('#email-update-password-dialog *').show();
|
||||
$('#email-update-password-dialog input[name=password]').focus();
|
||||
}
|
||||
|
||||
function handleUpdateEmailPasswordPromptCancel() {
|
||||
$('#account-edit-email-submit').removeClass('button-disabled');
|
||||
$('#account-edit-email-submit').unbind('click', false);
|
||||
$('#email-update-password-dialog *').hide();
|
||||
$('#email-update-password-dialog input[name=password]').val('');
|
||||
}
|
||||
|
|
@ -128,6 +133,8 @@
|
|||
}
|
||||
|
||||
function postUpdateEmailSuccess(response, email) {
|
||||
$('#account-edit-email-submit').removeClass('button-disabled');
|
||||
$('#account-edit-email-submit').unbind('click', false);
|
||||
app.notify(
|
||||
{ title: "Confirmation Email Sent",
|
||||
text: "A confirmation email should arrive shortly at " + email + ". Please click the confirmation link in it to confirm your email change."
|
||||
|
|
@ -136,7 +143,8 @@
|
|||
}
|
||||
|
||||
function postUpdateEmailFailure(xhr, textStatus, errorMessage) {
|
||||
|
||||
$('#account-edit-email-submit').removeClass('button-disabled');
|
||||
$('#account-edit-email-submit').unbind('click', false);
|
||||
var errors = JSON.parse(xhr.responseText)
|
||||
|
||||
if(xhr.status == 422) {
|
||||
|
|
@ -225,4 +233,4 @@
|
|||
return this;
|
||||
};
|
||||
|
||||
})(window,jQuery);
|
||||
})(window,jQuery);
|
||||
|
|
|
|||
|
|
@ -218,7 +218,6 @@ small {
|
|||
color:#EEE;
|
||||
background-color:#666;
|
||||
cursor:default;
|
||||
content: "Hang on..."
|
||||
}
|
||||
|
||||
.button-disabled:hover{
|
||||
|
|
|
|||
Loading…
Reference in New Issue