diff options
author | kondou <kondou@ts.unde.re> | 2014-02-21 12:42:07 +0100 |
---|---|---|
committer | kondou <kondou@ts.unde.re> | 2014-02-21 12:42:07 +0100 |
commit | 88882e3fa73cc21b96c2877a3d527bea56b6be11 (patch) | |
tree | 3bc998a9ff76d608406705c035d055f17fe92524 /settings | |
parent | 0e0b4d55756e438111264423cc04baadb8b067a7 (diff) | |
download | nextcloud-server-88882e3fa73cc21b96c2877a3d527bea56b6be11.tar.gz nextcloud-server-88882e3fa73cc21b96c2877a3d527bea56b6be11.zip |
Use addClass('hidden') and removeClass('hidden')
Diffstat (limited to 'settings')
-rw-r--r-- | settings/js/personal.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/settings/js/personal.js b/settings/js/personal.js index 77c06f26a6a..59f112c8032 100644 --- a/settings/js/personal.js +++ b/settings/js/personal.js @@ -59,7 +59,7 @@ function updateAvatar (hidedefault) { $displaydiv.css({'background-color': ''}); $displaydiv.avatar(OC.currentUser, 128, true); - $('#removeavatar').show(); + $('#removeavatar').removeClass('hidden'); } function showAvatarCropper() { @@ -256,7 +256,7 @@ $(document).ready(function(){ url: OC.Router.generate('core_avatar_delete'), success: function(msg) { updateAvatar(true); - $('#removeavatar').hide(); + $('#removeavatar').addClass('hidden'); } }); }); @@ -286,7 +286,7 @@ $(document).ready(function(){ var url = OC.Router.generate('core_avatar_get', {user: OC.currentUser, size: 1})+'?requesttoken='+oc_requesttoken; $.get(url, function(result) { if (typeof(result) === 'object') { - $('#removeavatar').hide(); + $('#removeavatar').addClass('hidden'); } }); }); |