summaryrefslogtreecommitdiffstats
path: root/apps/files
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2018-11-02 22:45:25 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2018-11-02 22:45:25 +0100
commitb1fd72c1cf499188db7ddc26c925d7d5eed7aa2a (patch)
tree641335ea845b79ad3a7165ee5dda996e913b1e89 /apps/files
parent9d89f8bbac3d8a31e1f6a4a40d81014ec309c84c (diff)
downloadnextcloud-server-b1fd72c1cf499188db7ddc26c925d7d5eed7aa2a.tar.gz
nextcloud-server-b1fd72c1cf499188db7ddc26c925d7d5eed7aa2a.zip
Set the filemodel before rending the detailsview
fixes #10934 Else it triggers the rendering two times. Resulting is weird state in for example the comments. Because the comments for OLD_FILEID are retrieved but then the model is changed to NEW_FILEID. But the old comments still get in and get parsed. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'apps/files')
-rw-r--r--apps/files/js/filelist.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js
index 9cc1856d52b..8b12cce51d1 100644
--- a/apps/files/js/filelist.js
+++ b/apps/files/js/filelist.js
@@ -576,8 +576,8 @@
}
this._currentFileModel = model;
- this._detailsView.render();
this._detailsView.setFileInfo(model);
+ this._detailsView.render();
this._detailsView.$el.scrollTop(0);
},