Allow late registration of file actions in public page

This commit is contained in:
Vincent Petry 2014-06-27 16:10:20 +02:00
parent 3b2fd5e4e6
commit 13b7937381
1 changed files with 4 additions and 0 deletions

View File

@ -33,6 +33,10 @@ OCA.Sharing.PublicApp = {
// regular actions
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.initialDir = $('#dir').val();