summaryrefslogtreecommitdiffstats
path: root/core/js
diff options
context:
space:
mode:
authorHendrik Leppelsack <hendrik@leppelsack.de>2015-09-25 12:11:50 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2015-09-25 20:48:47 +0200
commit0ae931ed57ce8daa9df9129e95c2cd9524bae830 (patch)
treee8d2ec0767528006d64fbbf5a21cf639a65654bd /core/js
parent87e067f4c82ba5f8e6dd04a8606112aade8f432b (diff)
downloadnextcloud-server-0ae931ed57ce8daa9df9129e95c2cd9524bae830.tar.gz
nextcloud-server-0ae931ed57ce8daa9df9129e95c2cd9524bae830.zip
fix sidebar spinner
Diffstat (limited to 'core/js')
-rw-r--r--core/js/sharedialogshareelistview.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/core/js/sharedialogshareelistview.js b/core/js/sharedialogshareelistview.js
index d2c45bb08b1..8c1934ff264 100644
--- a/core/js/sharedialogshareelistview.js
+++ b/core/js/sharedialogshareelistview.js
@@ -21,7 +21,7 @@
' {{/if}}' +
' {{#unless isCollection}}' +
' <li data-share-type="{{shareType}}" data-share-with="{{shareWith}}" title="{{shareWith}}">' +
- ' <a href="#" class="unshare"><img class="svg" alt="{{unshareLabel}}" title="{{unshareLabel}}" src="{{unshareImage}}" /></a>' +
+ ' <a href="#" class="unshare"><span class="icon-loading-small hidden"></span><img class="svg" alt="{{unshareLabel}}" title="{{unshareLabel}}" src="{{unshareImage}}" /></a>' +
' {{#if avatarEnabled}}' +
' <div class="avatar {{#if modSeed}}imageplaceholderseed{{/if}}" data-username="{{shareWith}}" {{#if modSeed}}data-seed="{{shareWith}} {{shareType}}"{{/if}}></div>' +
' {{/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');