Skip to content
Snippets Groups Projects
Commit 2f3c5d8a authored by Qingping Hou's avatar Qingping Hou
Browse files

when user changes displayName, also update it on expand button

parent 906f8fa6
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment