diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2016-10-04 19:08:08 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2016-11-07 14:58:45 +0100 |
commit | bc1cb8a6d09d97df93b7914e020759eb7df73df1 (patch) | |
tree | 802cdf07e0199a2b8708c753cd7cb3ba4750a5d5 /apps/files/js | |
parent | c5597baf88c3f7bcea9c03a3fa35e1dc81e12bd5 (diff) | |
download | nextcloud-server-bc1cb8a6d09d97df93b7914e020759eb7df73df1.tar.gz nextcloud-server-bc1cb8a6d09d97df93b7914e020759eb7df73df1.zip |
let users share the curren folder
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'apps/files/js')
-rw-r--r-- | apps/files/js/filelist.js | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js index 8d0e492643f..5bdb1a8999d 100644 --- a/apps/files/js/filelist.js +++ b/apps/files/js/filelist.js @@ -518,13 +518,16 @@ OC.Apps.showAppSidebar(this._detailsView.$el); } - var $tr = this.findFileEl(fileName); - var model = this.getModelForFile($tr); + if (_.isObject(fileName)) { + var model = new OCA.Files.FileInfoModel(fileName); + } else { + var $tr = this.findFileEl(fileName); + var model = this.getModelForFile($tr); + $tr.addClass('highlighted'); + } this._currentFileModel = model; - $tr.addClass('highlighted'); - this._detailsView.setFileInfo(model); this._detailsView.$el.scrollTop(0); }, |