From: Vincent Petry Date: Fri, 11 Oct 2013 10:36:30 +0000 (+0200) Subject: Now using smaller spinner image for status indicator X-Git-Tag: v6.0.0alpha2~17^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=bced346c3b07fc6549f216f4db20c52e827d3cfa;p=nextcloud-server.git Now using smaller spinner image for status indicator To make the status indicator appear smaller, even in IE8 that doesn't support background-size, there is no a smaller animated gif "loading-small" for that purpose. --- diff --git a/apps/files_external/css/settings.css b/apps/files_external/css/settings.css index 74b14028468..0ebae9d82be 100644 --- a/apps/files_external/css/settings.css +++ b/apps/files_external/css/settings.css @@ -4,9 +4,6 @@ td.status > span { width: 16px; vertical-align: text-bottom; } -span.loading{ - background-size: 16px 16px; -} span.success { background: #37ce02; border-radius: 8px; diff --git a/apps/files_external/js/settings.js b/apps/files_external/js/settings.js index 3e92bc87e85..886c324e338 100644 --- a/apps/files_external/js/settings.js +++ b/apps/files_external/js/settings.js @@ -1,7 +1,7 @@ (function(){ function updateStatus(statusEl, result){ - statusEl.removeClass('success error loading'); + statusEl.removeClass('success error loading-small'); if (result && result.status == 'success' && result.data.message) { statusEl.addClass('success'); return true; @@ -71,7 +71,7 @@ OC.MountConfig={ } users.push(applicable); } - statusSpan.addClass('loading').removeClass('error success'); + statusSpan.addClass('loading-small').removeClass('error success'); $.ajax({type: 'POST', url: OC.filePath('files_external', 'ajax', 'addMountPoint.php'), data: { @@ -124,7 +124,7 @@ OC.MountConfig={ var isPersonal = true; var mountType = 'user'; var applicable = OC.currentUser; - statusSpan.addClass('loading').removeClass('error success'); + statusSpan.addClass('loading-small').removeClass('error success'); $.ajax({type: 'POST', url: OC.filePath('files_external', 'ajax', 'addMountPoint.php'), data: { diff --git a/core/css/styles.css b/core/css/styles.css index be53b67c858..a0de21f3ac6 100644 --- a/core/css/styles.css +++ b/core/css/styles.css @@ -745,6 +745,7 @@ a.bookmarklet { background-color:#ddd; border:1px solid #ccc; padding:5px;paddin span.ui-icon {float: left; margin: 3px 7px 30px 0;} .loading { background: url('../img/loading.gif') no-repeat center; cursor: wait; } +.loading-small { background: url('../img/loading-small.gif') no-repeat center; cursor: wait; } .move2trash { /* decrease spinner size */ width: 16px; height: 16px; diff --git a/core/img/loading-small.gif b/core/img/loading-small.gif new file mode 100644 index 00000000000..5025f0bedeb Binary files /dev/null and b/core/img/loading-small.gif differ