diff options
author | Arthur Schiwon <blizzz@owncloud.com> | 2015-08-10 22:23:52 +0200 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2015-09-16 07:23:25 +0200 |
commit | 1651b8212cf67e2ca59cf890cefe6097fbfa6a8a (patch) | |
tree | 636ae542105349fba55a1eb4864cc45798163321 /core/js/share.js | |
parent | ea6e380efe68e7249917d6470ecdffb25edbcc47 (diff) | |
download | nextcloud-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.js | 3 |
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, |