From 0ae931ed57ce8daa9df9129e95c2cd9524bae830 Mon Sep 17 00:00:00 2001 From: Hendrik Leppelsack Date: Fri, 25 Sep 2015 12:11:50 +0200 Subject: [PATCH] fix sidebar spinner --- apps/files_sharing/css/sharetabview.css | 6 +++++- core/js/sharedialogshareelistview.js | 8 +++++--- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/apps/files_sharing/css/sharetabview.css b/apps/files_sharing/css/sharetabview.css index fe7a194750..1745eba584 100644 --- a/apps/files_sharing/css/sharetabview.css +++ b/apps/files_sharing/css/sharetabview.css @@ -73,5 +73,9 @@ } .shareTabView .icon-loading-small { - margin-left: -30px; + position: absolute; + display: inline-block; + z-index: 1; + background-color: white; + padding: 2px; } diff --git a/core/js/sharedialogshareelistview.js b/core/js/sharedialogshareelistview.js index d2c45bb08b..8c1934ff26 100644 --- a/core/js/sharedialogshareelistview.js +++ b/core/js/sharedialogshareelistview.js @@ -21,7 +21,7 @@ ' {{/if}}' + ' {{#unless isCollection}}' + '
  • ' + - ' {{unshareLabel}}' + + ' {{unshareLabel}}' + ' {{#if avatarEnabled}}' + '
    ' + ' {{/if}}' + @@ -244,12 +244,14 @@ onUnshare: function(event) { var $element = $(event.target); + console.log($element); - if($element.hasClass('icon-loading-small')) { + var $loading = $element.siblings('.icon-loading-small').eq(0); + if(!$loading.hasClass('hidden')) { // in process return; } - $element.empty().addClass('icon-loading-small'); + $loading.removeClass('hidden'); var $li = $element.closest('li'); var shareType = $li.data('share-type');