diff options
author | Vincent Petry <pvince81@owncloud.com> | 2015-08-10 15:57:21 +0200 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2015-08-10 15:57:21 +0200 |
commit | 86e1eaf370ff5c290805bac130f3c3bbd1d1c774 (patch) | |
tree | 51de588683b9fe02a21736fd2f2a32051dd34bcd /core/js | |
parent | 08912308a05090ab757636cd8e542298ebd90942 (diff) | |
download | nextcloud-server-86e1eaf370ff5c290805bac130f3c3bbd1d1c774.tar.gz nextcloud-server-86e1eaf370ff5c290805bac130f3c3bbd1d1c774.zip |
Inline actions using default renderer are now always permanent
Default renderer like the favorite icon can decide whether to use the
permanent class or not.
Fixed sharing code to properly update the icon according to sharing
state modifications.
Diffstat (limited to 'core/js')
-rw-r--r-- | core/js/share.js | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/core/js/share.js b/core/js/share.js index 99fd08c6411..57dd0dd6553 100644 --- a/core/js/share.js +++ b/core/js/share.js @@ -266,7 +266,6 @@ OC.Share={ if (hasShares || owner) { recipients = $tr.attr('data-share-recipients'); - action.addClass('permanent'); message = t('core', 'Shared'); // even if reshared, only show "Shared by" if (owner) { @@ -281,8 +280,7 @@ OC.Share={ } } else { - action.removeClass('permanent'); - action.html(' <span>'+ escapeHTML(t('core', 'Share'))+'</span>').prepend(img); + action.html('<span></span>').prepend(img); } if (hasLink) { image = OC.imagePath('core', 'actions/public'); |