Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions apps/files/js/detailsview.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,13 @@
*/
render: function() {
// remove old instances
if ($('#app-sidebar').length === 0) {
var $appSidebar = $('#app-sidebar');
if ($appSidebar.length === 0) {
this.$el.insertAfter($('#app-content'));
} else {
$('#app-sidebar').replaceWith(this.$el)
if ($appSidebar[0] !== this.el) {
$appSidebar.replaceWith(this.$el)
}
}

var templateVars = {
Expand Down
4 changes: 2 additions & 2 deletions apps/files/js/filelist.js
Original file line number Diff line number Diff line change
Expand Up @@ -564,7 +564,7 @@
}

this._currentFileModel = model;

this._detailsView.render();
this._detailsView.setFileInfo(model);
this._detailsView.$el.scrollTop(0);
},
Expand Down Expand Up @@ -1623,7 +1623,7 @@

// discard finished uploads list, we'll get it through a regular reload
this._uploads = {};
this.reload().then(function(success){
return this.reload().then(function(success){
if (!success) {
self.changeDirectory(currentDir, true);
}
Expand Down