From a9aa39efbfc676aa7988a02c336adc4ef5b3b7e8 Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Wed, 30 Mar 2016 18:09:02 +0200 Subject: Fix displaying owner before share icon in file list Initial display of owner was missing --- apps/files_sharing/js/share.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'apps/files_sharing/js/share.js') 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) { -- cgit v1.2.3