From 1651b8212cf67e2ca59cf890cefe6097fbfa6a8a Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Mon, 10 Aug 2015 22:23:52 +0200 Subject: started to port the Model to Backbone`s --- core/js/share.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'core/js/share.js') 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, -- cgit v1.2.3