diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2016-10-04 19:08:08 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2016-11-07 14:58:45 +0100 |
commit | bc1cb8a6d09d97df93b7914e020759eb7df73df1 (patch) | |
tree | 802cdf07e0199a2b8708c753cd7cb3ba4750a5d5 /apps/files_sharing | |
parent | c5597baf88c3f7bcea9c03a3fa35e1dc81e12bd5 (diff) | |
download | nextcloud-server-bc1cb8a6d09d97df93b7914e020759eb7df73df1.tar.gz nextcloud-server-bc1cb8a6d09d97df93b7914e020759eb7df73df1.zip |
let users share the curren folder
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'apps/files_sharing')
-rw-r--r-- | apps/files_sharing/js/sharebreadcrumbview.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/apps/files_sharing/js/sharebreadcrumbview.js b/apps/files_sharing/js/sharebreadcrumbview.js index c469fd252aa..7e659768304 100644 --- a/apps/files_sharing/js/sharebreadcrumbview.js +++ b/apps/files_sharing/js/sharebreadcrumbview.js @@ -33,6 +33,10 @@ var BreadCrumbView = OC.Backbone.View.extend({ tagName: 'span', + events: { + click: '_onClick' + }, + _dirInfo: undefined, _template: undefined, template: function(data) { if (!this._template) { @@ -41,13 +45,21 @@ return this._template(data); }, render: function(data) { + this._dirInfo = data.dirInfo; + var isShared = data.dirInfo && data.dirInfo.shareTypes && data.dirInfo.shareTypes.length > 0; this.$el.html(this.template({ isShared: isShared })); + this.delegateEvents(); return this; + }, + _onClick: function(e) { + e.preventDefault(); + + OCA.Files.App.fileList.showDetailsView(this._dirInfo, 'shareTabView'); } }); |