From d677e3860d22e3a779c0f01af1adc4e193127d1c Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Mon, 2 Jun 2014 15:59:06 +0200 Subject: Added unit tests for share.js and share icon --- core/js/share.js | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) (limited to 'core/js') diff --git a/core/js/share.js b/core/js/share.js index d8020531763..c4ca63908a9 100644 --- a/core/js/share.js +++ b/core/js/share.js @@ -48,7 +48,7 @@ OC.Share={ currentDir = fileList.getCurrentDirectory(); } for (item in OC.Share.statuses){ - var image = OC.imagePath('core', 'actions/shared'); + var image = OC.imagePath('core', 'actions/share'); var data = OC.Share.statuses[item]; var hasLink = data.link; // Links override shared in terms of icon display @@ -113,7 +113,7 @@ OC.Share={ } } else if (OC.Share.itemShares[index].length > 0) { shares = true; - image = OC.imagePath('core', 'actions/shared'); + image = OC.imagePath('core', 'actions/share'); } } }); @@ -165,17 +165,7 @@ OC.Share={ image = image || OC.imagePath('core', 'actions/share'); } if (recipients) { - image = image || OC.imagePath('core', 'actions/shared'); - if (owner) { - message = ' ' + t( - 'files_sharing', - 'Shared by {owner} with You, {recipients}', - {owner: owner, recipients: recipients} - ); - } - else { - message = t('core', 'Shared with {recipients}', {recipients: recipients}); - } + message = t('core', 'Shared with {recipients}', {recipients: recipients}); } action.html(' '+ message + '').prepend(img); } -- cgit v1.2.3