Skip to content
Snippets Groups Projects
Commit 69707747 authored by Vincent Petry's avatar Vincent Petry
Browse files

Fixed display name change for IE8

After saving the display name, the oldDisplayName field's value was
wrongly set with text(), which would append the text inside the input
element which is considered as an invalid operation in IE8.

This fix for #5054 correctly puts the old value into the field with a val() call.
parent 44a5b0ba
Branches
No related tags found
No related merge requests found
......@@ -31,7 +31,7 @@ function changeDisplayName(){
// Ajax foo
$.post( 'ajax/changedisplayname.php', post, function(data){
if( data.status === "success" ){
$('#oldDisplayName').text($('#displayName').val());
$('#oldDisplayName').val($('#displayName').val());
// update displayName on the top right expand button
$('#expandDisplayName').text($('#displayName').val());
updateAvatar();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment