Adds a checkmark when the change is complete.

This commit is contained in:
Raghu Nayyar 2016-09-01 11:04:06 +02:00
parent 682ed7ff8f
commit 91ffb63595
2 changed files with 5 additions and 0 deletions

View File

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

View File

@ -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);