]> source.dussan.org Git - nextcloud-server.git/commitdiff
Set the filemodel before rending the detailsview 12301/head
authorRoeland Jago Douma <roeland@famdouma.nl>
Fri, 2 Nov 2018 21:45:25 +0000 (22:45 +0100)
committerRoeland Jago Douma <roeland@famdouma.nl>
Tue, 6 Nov 2018 07:10:19 +0000 (08:10 +0100)
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>
apps/files/js/filelist.js

index 42b80189287f86539d30d180feefd356f5468a1f..a7dadbbab3e103080d7f2c825215fe479802ce1b 100644 (file)
                        }
 
                        this._currentFileModel = model;
-                       this._detailsView.render();
                        this._detailsView.setFileInfo(model);
+                       this._detailsView.render();
                        this._detailsView.$el.scrollTop(0);
                },