diff options
author | Qingping Hou <dave2008713@gmail.com> | 2013-02-24 18:07:35 -0500 |
---|---|---|
committer | Qingping Hou <dave2008713@gmail.com> | 2013-02-24 18:07:35 -0500 |
commit | 2f3c5d8afc1b945a643aa94aeafd5138d1f57528 (patch) | |
tree | 213a6b11657c81eaab31e2c0d8855a61f53354bb | |
parent | 906f8fa6f6d7b9ecfdd347bec1939b48b5cb34cf (diff) | |
download | nextcloud-server-2f3c5d8afc1b945a643aa94aeafd5138d1f57528.tar.gz nextcloud-server-2f3c5d8afc1b945a643aa94aeafd5138d1f57528.zip |
when user changes displayName, also update it on expand button
-rw-r--r-- | settings/js/personal.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/settings/js/personal.js b/settings/js/personal.js index d9455b3786b..c5a46a16002 100644 --- a/settings/js/personal.js +++ b/settings/js/personal.js @@ -31,7 +31,7 @@ $(document).ready(function(){ } }); - + $("#displaynamebutton").click( function(){ if ($('#displayName').val() != '' ) { // Serialize the data @@ -42,6 +42,10 @@ $(document).ready(function(){ $.post( 'ajax/changedisplayname.php', post, function(data){ if( data.status == "success" ){ $('#displaynamechanged').show(); + // update displayName on the top right expand button + str_parts = $('#expand').html().split('\t'); + str_parts[5] = $('#displayName').val(); + $('#expand').html(str_parts.join('\t')); } else{ $('#newdisplayname').val(data.data.displayName) |