diff options
author | Qingping Hou <dave2008713@gmail.com> | 2013-02-24 18:13:25 -0500 |
---|---|---|
committer | Qingping Hou <dave2008713@gmail.com> | 2013-02-24 18:13:25 -0500 |
commit | 278a6f5b416693ed2dbeb13b6cc1fb0dafc9d391 (patch) | |
tree | 1e1078e55cf7e3dfcc6ab3779b6d0f7044a8a075 /settings | |
parent | 2f3c5d8afc1b945a643aa94aeafd5138d1f57528 (diff) | |
download | nextcloud-server-278a6f5b416693ed2dbeb13b6cc1fb0dafc9d391.tar.gz nextcloud-server-278a6f5b416693ed2dbeb13b6cc1fb0dafc9d391.zip |
update oldDisplayName value on displayName change
This patch fixes a bug that can be reproduced in following way:
1. change displayName
2. clear text in displayName input click change again
Then you will get an error and previous displayName will be restored.
Expected behavior should restore the new updated displayName.
Diffstat (limited to 'settings')
-rw-r--r-- | settings/js/personal.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/settings/js/personal.js b/settings/js/personal.js index c5a46a16002..8747c496041 100644 --- a/settings/js/personal.js +++ b/settings/js/personal.js @@ -42,6 +42,7 @@ $(document).ready(function(){ $.post( 'ajax/changedisplayname.php', post, function(data){ if( data.status == "success" ){ $('#displaynamechanged').show(); + $('#oldDisplayName').val($('#displayName').val()); // update displayName on the top right expand button str_parts = $('#expand').html().split('\t'); str_parts[5] = $('#displayName').val(); |