Always call render to replace the app-sidebar if the detail view is updated
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
parent
bcdbc4e19e
commit
16f6c07173
2 changed files with 6 additions and 3 deletions
|
@ -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 = {
|
||||
|
|
|
@ -564,7 +564,7 @@
|
|||
}
|
||||
|
||||
this._currentFileModel = model;
|
||||
|
||||
this._detailsView.render();
|
||||
this._detailsView.setFileInfo(model);
|
||||
this._detailsView.$el.scrollTop(0);
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue