aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2019-02-13 16:05:13 +0100
committerGitHub <noreply@github.com>2019-02-13 16:05:13 +0100
commit53e8957a556af086ce66b8eba45f0013391d7f0d (patch)
treec456b981b3e0b10f35a8fe8460b47230a5fe554f
parent34630fb717b0a174f86f529e52b5cd990fe758bd (diff)
parentca155fd5d82dc3a7df496210dabcf3fe39d02af8 (diff)
downloadnextcloud-server-53e8957a556af086ce66b8eba45f0013391d7f0d.tar.gz
nextcloud-server-53e8957a556af086ce66b8eba45f0013391d7f0d.zip
Merge pull request #14166 from nextcloud/enhancement/noid/sharing-tab-plugins
Allow attaching plugins to the ShareTabView and trigger event on render
-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');
}
});