summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2016-10-14 11:21:40 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2016-11-07 14:58:45 +0100
commit1190ce1dd5530865c6a5465e1e93a64002bcda47 (patch)
treeb47941d551e29aae20947ec8bd9dad48f697bd48 /apps/files_sharing
parentc55718ae5e6eb3ebde519e3a4954e8b339734067 (diff)
downloadnextcloud-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')
-rw-r--r--apps/files_sharing/js/share.js2
-rw-r--r--apps/files_sharing/js/sharebreadcrumbview.js11
2 files changed, 12 insertions, 1 deletions
diff --git a/apps/files_sharing/js/share.js b/apps/files_sharing/js/share.js
index 2119db0b71e..073cc77e5aa 100644
--- a/apps/files_sharing/js/share.js
+++ b/apps/files_sharing/js/share.js
@@ -174,7 +174,7 @@
});
fileList.registerTabView(shareTab);
- var breadCrumbSharingDetailView = new OCA.Sharing.ShareBreadCrumbView();
+ var breadCrumbSharingDetailView = new OCA.Sharing.ShareBreadCrumbView({shareTab: shareTab});
fileList.registerBreadCrumbDetailView(breadCrumbSharingDetailView);
},
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');
}
});