summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing
diff options
context:
space:
mode:
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');
}
});