diff options
author | Jan-Christoph Borchardt <hey@jancborchardt.net> | 2017-04-24 23:13:46 +0200 |
---|---|---|
committer | Jan-Christoph Borchardt <hey@jancborchardt.net> | 2017-04-25 00:22:57 +0200 |
commit | cf588f03bf91c24115e77c47f50e631f6f54a227 (patch) | |
tree | ae9eba3983d69f70f072535309bcc2e645dae5cd /settings | |
parent | 2fbf1114aced77a3840ee024d925efb8671458fb (diff) | |
download | nextcloud-server-cf588f03bf91c24115e77c47f50e631f6f54a227.tar.gz nextcloud-server-cf588f03bf91c24115e77c47f50e631f6f54a227.zip |
Center spinner in apps management
Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
Diffstat (limited to 'settings')
-rw-r--r-- | settings/js/apps.js | 5 | ||||
-rw-r--r-- | settings/templates/apps.php | 4 |
2 files changed, 5 insertions, 4 deletions
diff --git a/settings/js/apps.js b/settings/js/apps.js index d4d10ddc951..c8001822083 100644 --- a/settings/js/apps.js +++ b/settings/js/apps.js @@ -74,8 +74,9 @@ OC.Settings.Apps = OC.Settings.Apps || { if (this._loadCategoryCall) { this._loadCategoryCall.abort(); } + + $('#app-content').addClass('icon-loading'); $('#apps-list') - .addClass('icon-loading') .removeClass('hidden') .html(''); $('#apps-list-empty').addClass('hidden'); @@ -166,7 +167,7 @@ OC.Settings.Apps = OC.Settings.Apps || { }); }, complete: function() { - $('#apps-list').removeClass('icon-loading'); + $('#app-content').removeClass('icon-loading'); } }); }, diff --git a/settings/templates/apps.php b/settings/templates/apps.php index 817856717a0..ed842bb2ca9 100644 --- a/settings/templates/apps.php +++ b/settings/templates/apps.php @@ -191,11 +191,11 @@ script( </ul> </div> -<div id="app-content"> +<div id="app-content" class="icon-loading"> <svg class="app-filter"> <defs><filter id="invertIcon"><feColorMatrix in="SourceGraphic" type="matrix" values="-1 0 0 0 1 0 -1 0 0 1 0 0 -1 0 1 0 0 0 1 0"></feColorMatrix></filter></defs> </svg> - <div id="apps-list" class="icon-loading"></div> + <div id="apps-list"></div> <div id="apps-list-empty" class="hidden emptycontent emptycontent-search"> <div class="icon-search"></div> <h2><?php p($l->t('No apps found for your version')) ?></h2> |