]> source.dussan.org Git - nextcloud-server.git/commitdiff
Use $.hide() instead of .hidden for now
authorkondou <kondou@ts.unde.re>
Wed, 12 Mar 2014 14:42:29 +0000 (15:42 +0100)
committerkondou <kondou@ts.unde.re>
Wed, 12 Mar 2014 14:42:29 +0000 (15:42 +0100)
.inlineblock ranks higher than .hidden

settings/js/personal.js

index fe8c21aa4f10c376b5fd0dbaa8d13f7fd576fcf1..f502037cfdacdd345e91b38e20da211e6b40d957 100644 (file)
@@ -61,7 +61,7 @@ function updateAvatar (hidedefault) {
        $displaydiv.css({'background-color': ''});
        $displaydiv.avatar(OC.currentUser, 128, true);
 
-       $('#removeavatar').removeClass('hidden');
+       $('#removeavatar').show();
 }
 
 function showAvatarCropper() {
@@ -258,7 +258,7 @@ $(document).ready(function(){
                        url:    OC.generateUrl('/avatar/'),
                        success: function(msg) {
                                updateAvatar(true);
-                               $('#removeavatar').addClass('hidden');
+                               $('#removeavatar').hide();
                        }
                });
        });
@@ -290,7 +290,7 @@ $(document).ready(function(){
        ) + '?requesttoken=' + oc_requesttoken;
        $.get(url, function(result) {
                if (typeof(result) === 'object') {
-                       $('#removeavatar').addClass('hidden');
+                       $('#removeavatar').hide();
                }
        });
 } );