Show private link in dropdown

This commit is contained in:
Michael Gapczynski 2012-07-11 12:21:30 -04:00
parent ccb5e99395
commit cbf851de69
1 changed files with 5 additions and 1 deletions

View File

@ -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');