Allow attaching plugins to the ShareTabView and trigger event on rendering
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
parent
0df5110127
commit
ca155fd5d8
|
@ -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');
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue