summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2013-10-11 10:48:30 +0200
committerVincent Petry <pvince81@owncloud.com>2013-10-11 10:48:30 +0200
commit69707747767a653f682c7db1d3f2d514d9a44e75 (patch)
tree44bc411af38224199cb7dd2e18ced4365bbc0432
parent44a5b0bad0e0dbcb0c11de663897ace69b4fd776 (diff)
downloadnextcloud-server-69707747767a653f682c7db1d3f2d514d9a44e75.tar.gz
nextcloud-server-69707747767a653f682c7db1d3f2d514d9a44e75.zip
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.
-rw-r--r--settings/js/personal.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/settings/js/personal.js b/settings/js/personal.js
index 3fdc2907c46..e9a6d4d33ff 100644
--- a/settings/js/personal.js
+++ b/settings/js/personal.js
@@ -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();