From cbf851de69d796ccf7df48d3c1d1f94a311acdb1 Mon Sep 17 00:00:00 2001 From: Michael Gapczynski Date: Wed, 11 Jul 2012 12:21:30 -0400 Subject: [PATCH] Show private link in dropdown --- core/js/share.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/core/js/share.js b/core/js/share.js index 90da96259e..42002ea798 100644 --- a/core/js/share.js +++ b/core/js/share.js @@ -85,7 +85,11 @@ OC.Share={ var data = OC.Share.loadItem(itemType, item); if (data) { $.each(data, function(index, share) { - OC.Share.addShareWith(share.share_with, share.permissions); + if (share.share_type == OC.Share.SHARE_TYPE_PRIVATE_LINK) { + OC.Share.showPrivateLink(item, share.share_with); + } else { + OC.Share.addShareWith(share.share_with, share.permissions); + } }); } $('#dropdown').show('blind');