diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2016-10-14 11:21:40 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2016-11-07 14:58:45 +0100 |
commit | 1190ce1dd5530865c6a5465e1e93a64002bcda47 (patch) | |
tree | b47941d551e29aae20947ec8bd9dad48f697bd48 /apps/files_sharing/js/sharebreadcrumbview.js | |
parent | c55718ae5e6eb3ebde519e3a4954e8b339734067 (diff) | |
download | nextcloud-server-1190ce1dd5530865c6a5465e1e93a64002bcda47.tar.gz nextcloud-server-1190ce1dd5530865c6a5465e1e93a64002bcda47.zip |
Listen to sharetab changes
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'apps/files_sharing/js/sharebreadcrumbview.js')
-rw-r--r-- | apps/files_sharing/js/sharebreadcrumbview.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/apps/files_sharing/js/sharebreadcrumbview.js b/apps/files_sharing/js/sharebreadcrumbview.js index d29ba9d05dc..e8357bcbdef 100644 --- a/apps/files_sharing/js/sharebreadcrumbview.js +++ b/apps/files_sharing/js/sharebreadcrumbview.js @@ -34,6 +34,14 @@ }, _dirInfo: undefined, _template: undefined, + + /** @type OCA.Sharing.ShareTabView */ + _shareTab: undefined, + + initialize: function(options) { + this._shareTab = options.shareTab; + }, + template: function(data) { if (!this._template) { this._template = Handlebars.compile(TEMPLATE); @@ -68,6 +76,9 @@ dirInfo: self._dirInfo }); }); + this._shareTab.on('sharesChanged', function(shareModel) { + alert('aaoobb'); + }); OCA.Files.App.fileList.showDetailsView(fileInfoModel, 'shareTabView'); } }); |