aboutsummaryrefslogtreecommitdiffstats
path: root/core/js
diff options
context:
space:
mode:
authorMichael Gapczynski <mtgap@owncloud.com>2012-07-03 16:52:53 -0400
committerMichael Gapczynski <mtgap@owncloud.com>2012-07-03 16:52:53 -0400
commitdb33765e3662a6492c765bc737b3986a41ee82b9 (patch)
tree505cbfcc168deabe430ba444155a886b41a064d3 /core/js
parent96dea9507aab6189e4b0c7a50558a4d74bd37d8e (diff)
downloadnextcloud-server-db33765e3662a6492c765bc737b3986a41ee82b9.tar.gz
nextcloud-server-db33765e3662a6492c765bc737b3986a41ee82b9.zip
Add share with to list in dropdown after sharing
Diffstat (limited to 'core/js')
-rw-r--r--core/js/share.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/core/js/share.js b/core/js/share.js
index 685932f6730..2dc2a54ee54 100644
--- a/core/js/share.js
+++ b/core/js/share.js
@@ -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() {