Adds a checkmark when the change is complete.
This commit is contained in:
parent
682ed7ff8f
commit
91ffb63595
|
@ -96,6 +96,10 @@ input#identity {
|
|||
padding: 3px;
|
||||
}
|
||||
|
||||
.password-state {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
table.nostyle label { margin-right: 2em; }
|
||||
table.nostyle td { padding: 0.2em 0; }
|
||||
|
||||
|
|
|
@ -214,6 +214,7 @@ $(document).ready(function () {
|
|||
// Ajax foo
|
||||
$.post(OC.generateUrl('/settings/personal/changepassword'), post, function (data) {
|
||||
if (data.status === "success") {
|
||||
$("#passwordbutton").after("<span class='checkmark icon icon-checkmark password-state'></span>");
|
||||
$('#pass1').val('');
|
||||
$('#pass2').val('').change();
|
||||
OC.msg.finishedSaving('#password-error-msg', data);
|
||||
|
|
Loading…
Reference in New Issue