diff options
author | Vincent Petry <pvince81@owncloud.com> | 2016-03-30 18:09:02 +0200 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2016-03-30 18:09:02 +0200 |
commit | a9aa39efbfc676aa7988a02c336adc4ef5b3b7e8 (patch) | |
tree | dd8cd51e55f85a45ff986a37eca3600fbdbdacc3 /apps/files_sharing/js/share.js | |
parent | 66ee9d56fca2d4d586726d4654b761e03d7c69d2 (diff) | |
download | nextcloud-server-a9aa39efbfc676aa7988a02c336adc4ef5b3b7e8.tar.gz nextcloud-server-a9aa39efbfc676aa7988a02c336adc4ef5b3b7e8.zip |
Fix displaying owner before share icon in file list
Initial display of owner was missing
Diffstat (limited to 'apps/files_sharing/js/share.js')
-rw-r--r-- | apps/files_sharing/js/share.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/files_sharing/js/share.js b/apps/files_sharing/js/share.js index a253763389c..5bfc8e1d4a2 100644 --- a/apps/files_sharing/js/share.js +++ b/apps/files_sharing/js/share.js @@ -111,8 +111,9 @@ _.each($files, function(file) { var $tr = $(file); - var shareTypes = $tr.attr('data-share-types'); - if (shareTypes) { + var shareTypes = $tr.attr('data-share-types') || ''; + var shareOwner = $tr.attr('data-share-owner'); + if (shareTypes || shareOwner) { var hasLink = false; var hasShares = false; _.each(shareTypes.split(',') || [], function(shareType) { |