summaryrefslogtreecommitdiffstats
path: root/core/js/share.js
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@owncloud.com>2015-08-10 22:23:52 +0200
committerVincent Petry <pvince81@owncloud.com>2015-09-16 07:23:25 +0200
commit1651b8212cf67e2ca59cf890cefe6097fbfa6a8a (patch)
tree636ae542105349fba55a1eb4864cc45798163321 /core/js/share.js
parentea6e380efe68e7249917d6470ecdffb25edbcc47 (diff)
downloadnextcloud-server-1651b8212cf67e2ca59cf890cefe6097fbfa6a8a.tar.gz
nextcloud-server-1651b8212cf67e2ca59cf890cefe6097fbfa6a8a.zip
started to port the Model to Backbone`s
Diffstat (limited to 'core/js/share.js')
-rw-r--r--core/js/share.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/js/share.js b/core/js/share.js
index 9aba894f676..59467427eb3 100644
--- a/core/js/share.js
+++ b/core/js/share.js
@@ -377,7 +377,8 @@ OC.Share = _.extend(OC.Share, {
});
},
showDropDown:function(itemType, itemSource, appendTo, link, possiblePermissions, filename) {
- var itemModel = new OC.Share.ShareItemModel(itemType, itemSource);
+ var attributes = {itemType: itemType, itemSource: itemSource};
+ var itemModel = new OC.Share.ShareItemModel(attributes);
var dialogView = new OC.Share.ShareDialogView({
id: 'dropdown',
model: itemModel,