Properly set current file info when switching the details view
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
parent
6a60a01e4f
commit
940b73280d
1 changed files with 8 additions and 0 deletions
|
@ -650,6 +650,14 @@
|
|||
var model = this.getModelForFile(tr)
|
||||
var path = model.attributes.path + '/' + model.attributes.name
|
||||
|
||||
// make sure the file list has the correct context available
|
||||
if (this._currentFileModel) {
|
||||
this._currentFileModel.off();
|
||||
}
|
||||
this.$fileList.children().removeClass('highlighted');
|
||||
tr.addClass('highlighted');
|
||||
this._currentFileModel = model;
|
||||
|
||||
// open sidebar and set file
|
||||
OCA.Files.Sidebar.open(path.replace('//', '/'))
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue