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

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.
parent 2f3c5d8a
No related branches found
No related tags found
No related merge requests found
......@@ -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();
......
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