]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fixed display name change for IE8
authorVincent Petry <pvince81@owncloud.com>
Fri, 11 Oct 2013 08:48:30 +0000 (10:48 +0200)
committerVincent Petry <pvince81@owncloud.com>
Fri, 11 Oct 2013 08:48:30 +0000 (10:48 +0200)
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.

settings/js/personal.js

index 3fdc2907c4604ed48bc4b965fd53176ed1544116..e9a6d4d33ff725b4939d009e0c1782cacd41dfe2 100644 (file)
@@ -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();