From 4d261d9e15f454d3b768282255c3d004db4ea132 Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Thu, 25 Sep 2014 19:46:30 +0200 Subject: [PATCH] Added spinners in share dropdown Added spinners for the following actions: - adding user - removing user - changing password - toggling allowing upload - setting a password --- core/css/share.css | 14 ++++++ core/js/share.js | 110 ++++++++++++++++++++++++++++++++++++--------- 2 files changed, 102 insertions(+), 22 deletions(-) diff --git a/core/css/share.css b/core/css/share.css index aeabbbc5912..de909219b76 100644 --- a/core/css/share.css +++ b/core/css/share.css @@ -16,6 +16,20 @@ padding:16px; } +#dropdown.shareDropDown .unshare.icon-loading-small { + margin-top: 1px; +} + +#dropdown.shareDropDown .shareWithLoading, +#dropdown.shareDropDown .linkShare .icon-loading-small { + display: inline-block !important; + padding-left: 10px; +} + +#dropdown.shareDropDown .icon-loading-small.hidden { + display: none !important; +} + #shareWithList { list-style-type:none; padding:8px; diff --git a/core/js/share.js b/core/js/share.js index f1652370d35..363c1c341a2 100644 --- a/core/js/share.js +++ b/core/js/share.js @@ -304,7 +304,7 @@ OC.Share={ ); } - $.post(OC.filePath('core', 'ajax', 'share.php'), + return $.post(OC.filePath('core', 'ajax', 'share.php'), { action: 'share', itemType: itemType, @@ -351,7 +351,7 @@ OC.Share={ showDropDown:function(itemType, itemSource, appendTo, link, possiblePermissions, filename) { var data = OC.Share.loadItem(itemType, itemSource); var dropDownEl; - var html = '