diff options
author | Vincent Petry <pvince81@owncloud.com> | 2015-08-13 12:55:22 +0200 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2015-09-14 20:45:30 +0200 |
commit | 8a6574e81a7c0d44c908ce2b4740f004124f63c8 (patch) | |
tree | 0df06aa33758fbb0652035c896af394f3c860603 /apps/files | |
parent | fb9e75edb6d01729a27c84f6f11399a1b0fde9f3 (diff) | |
download | nextcloud-server-8a6574e81a7c0d44c908ce2b4740f004124f63c8.tar.gz nextcloud-server-8a6574e81a7c0d44c908ce2b4740f004124f63c8.zip |
Keep right sidebar open, add Details action
Diffstat (limited to 'apps/files')
-rw-r--r-- | apps/files/js/filelist.js | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js index c52e414e3a7..d8d73c8a00c 100644 --- a/apps/files/js/filelist.js +++ b/apps/files/js/filelist.js @@ -219,6 +219,17 @@ this._detailsView.addDetailView(new OCA.Files.MainFileInfoDetailView({fileList: this, fileActions: this.fileActions})); this._detailsView.$el.insertBefore(this.$el); this._detailsView.$el.addClass('disappear'); + + this.fileActions.registerAction({ + name: 'Details', + mime: 'all', + permissions: OC.PERMISSION_READ, + actionHandler: function(fileName, context) { + var fileInfo = self.elementToFile(context.$file); + self._updateDetailsView(fileInfo); + OC.Apps.showAppSidebar(); + } + }); } this.$el.find('#controls').prepend(this.breadcrumb.$el); @@ -366,7 +377,6 @@ } if (!fileName) { - OC.Apps.hideAppSidebar(this._detailsView.$el); this._detailsView.setFileInfo(null); if (this._currentFileModel) { this._currentFileModel.off(); @@ -384,7 +394,6 @@ this._detailsView.setFileInfo(model); this._detailsView.$el.scrollTop(0); - _.defer(OC.Apps.showAppSidebar, this._detailsView.$el); }, /** |