Add share with to list in dropdown after sharing

This commit is contained in:
Michael Gapczynski 2012-07-03 16:52:53 -04:00
parent 96dea9507a
commit db33765e36
1 changed files with 5 additions and 1 deletions

View File

@ -222,7 +222,11 @@ $(document).ready(function() {
});
$('#shareWith').live('change', function() {
OC.Share.share($('#dropdown').data('item-type'), $('#dropdown').data('item'), 0, $(this).val(), 0, false);
var shareWith = $(this).val();
OC.Share.share($('#dropdown').data('item-type'), $('#dropdown').data('item'), 0, shareWith, 0, function() {
OC.Share.addShareWith(shareWith, 0);
$('#shareWith').val('');
});
});
$('.unshare').live('click', function() {