Merge pull request #9260 from owncloud/fileactions-lateregisterinpublicpage
Allow late registration of file actions in public page
This commit is contained in:
commit
7a1b45c43b
|
@ -517,7 +517,6 @@
|
||||||
* This will refresh the file actions on the list.
|
* This will refresh the file actions on the list.
|
||||||
*/
|
*/
|
||||||
_onFileActionsUpdated: function() {
|
_onFileActionsUpdated: function() {
|
||||||
console.log('onFileActionsUpdated');
|
|
||||||
var self = this;
|
var self = this;
|
||||||
this.$fileList.find('tr td.filename').each(function() {
|
this.$fileList.find('tr td.filename').each(function() {
|
||||||
self.fileActions.display($(this), true, self);
|
self.fileActions.display($(this), true, self);
|
||||||
|
|
|
@ -33,6 +33,10 @@ OCA.Sharing.PublicApp = {
|
||||||
// regular actions
|
// regular actions
|
||||||
fileActions.merge(OCA.Files.fileActions);
|
fileActions.merge(OCA.Files.fileActions);
|
||||||
|
|
||||||
|
// in case apps would decide to register file actions later,
|
||||||
|
// replace the global object with this one
|
||||||
|
OCA.Files.fileActions = fileActions;
|
||||||
|
|
||||||
this._initialized = true;
|
this._initialized = true;
|
||||||
this.initialDir = $('#dir').val();
|
this.initialDir = $('#dir').val();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue