summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2019-02-12 16:52:26 +0100
committerJulius Härtl <jus@bitgrid.net>2019-02-12 16:52:26 +0100
commitca155fd5d82dc3a7df496210dabcf3fe39d02af8 (patch)
treea514598c4e740419180a29e034ef5e09bd63a3da /apps
parent0df5110127a794ab25cf677aa98787ec12ee6fa3 (diff)
downloadnextcloud-server-ca155fd5d82dc3a7df496210dabcf3fe39d02af8.tar.gz
nextcloud-server-ca155fd5d82dc3a7df496210dabcf3fe39d02af8.zip
Allow attaching plugins to the ShareTabView and trigger event on rendering
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'apps')
-rw-r--r--apps/files_sharing/js/sharetabview.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/files_sharing/js/sharetabview.js b/apps/files_sharing/js/sharetabview.js
index 3944293d5c1..9b1176dbb9a 100644
--- a/apps/files_sharing/js/sharetabview.js
+++ b/apps/files_sharing/js/sharetabview.js
@@ -24,6 +24,11 @@
id: 'shareTabView',
className: 'tab shareTabView',
+ initialize: function(name, options) {
+ OCA.Files.DetailTabView.prototype.initialize.call(this, name, options);
+ OC.Plugins.attach('OCA.Sharing.ShareTabView', this);
+ },
+
template: function(params) {
return TEMPLATE;
},
@@ -80,6 +85,7 @@
this.$el.empty();
// TODO: render placeholder text?
}
+ this.trigger('rendered');
}
});