when user changes displayName, also update it on expand button

This commit is contained in:
Qingping Hou 2013-02-24 18:07:35 -05:00
parent 906f8fa6f6
commit 2f3c5d8afc
1 changed files with 5 additions and 1 deletions

View File

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