summaryrefslogtreecommitdiffstats
path: root/core/js/share.js
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@owncloud.com>2015-08-11 23:14:44 +0200
committerVincent Petry <pvince81@owncloud.com>2015-09-16 07:23:25 +0200
commitb015eff2e92ba83c6bf95c0084e283ddc7a5df70 (patch)
tree3ac43c69f3c73598d6dce227202b979e3e2f5a1b /core/js/share.js
parent97b5fe0b1e7ece1c402f9226f13a6e9d711055cf (diff)
downloadnextcloud-server-b015eff2e92ba83c6bf95c0084e283ddc7a5df70.tar.gz
nextcloud-server-b015eff2e92ba83c6bf95c0084e283ddc7a5df70.zip
improve reshare rendering part and move permission calculation to model
Diffstat (limited to 'core/js/share.js')
-rw-r--r--core/js/share.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/core/js/share.js b/core/js/share.js
index d84da322274..db35a2e111c 100644
--- a/core/js/share.js
+++ b/core/js/share.js
@@ -382,18 +382,19 @@ OC.Share = _.extend(OC.Share, {
});
},
showDropDown:function(itemType, itemSource, appendTo, link, possiblePermissions, filename) {
- var attributes = {itemType: itemType, itemSource: itemSource};
+ var attributes = {itemType: itemType, itemSource: itemSource, possiblePermissions: possiblePermissions};
var itemModel = new OC.Share.ShareItemModel(attributes);
var dialogView = new OC.Share.ShareDialogView({
id: 'dropdown',
model: itemModel,
className: 'drop shareDropDown',
attributes: {
- 'data-item-source-name': filename
+ 'data-item-source-name': filename,
+ 'data-item-type': itemType,
+ 'data-item-soruce': itemSource
}
});
dialogView.setShowLink(link);
- dialogView.setPossiblePermissions(possiblePermissions);
var $dialog = dialogView.render().$el;
$dialog.appendTo(appendTo);
$dialog.slideDown(OC.menuSpeed, function() {