summaryrefslogtreecommitdiffstats
path: root/settings
diff options
context:
space:
mode:
authorFrank Karlitschek <frank@owncloud.org>2013-02-26 00:19:42 -0800
committerFrank Karlitschek <frank@owncloud.org>2013-02-26 00:19:42 -0800
commit072daf8850c87b070c3dad921c16246d095d9cb2 (patch)
treed2b02cb083a692f85b9b351c978bdc4b0120008b /settings
parent63d9feb8c0e7a6458efa93f0e56bacaffe572631 (diff)
parent02da5d5d525778a250c000af0e3da7360b4719e5 (diff)
downloadnextcloud-server-072daf8850c87b070c3dad921c16246d095d9cb2.tar.gz
nextcloud-server-072daf8850c87b070c3dad921c16246d095d9cb2.zip
Merge pull request #1885 from houqp/issue_1776
when user changes displayName, also update it on expand button
Diffstat (limited to 'settings')
-rw-r--r--settings/js/personal.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/settings/js/personal.js b/settings/js/personal.js
index d9455b3786b..d0a471e56b5 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,9 @@ $(document).ready(function(){
$.post( 'ajax/changedisplayname.php', post, function(data){
if( data.status == "success" ){
$('#displaynamechanged').show();
+ $('#oldDisplayName').text($('#displayName').val());
+ // update displayName on the top right expand button
+ $('#expandDisplayName').text($('#displayName').val());
}
else{
$('#newdisplayname').val(data.data.displayName)