diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2018-07-17 19:39:01 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2018-07-20 23:38:04 +0200 |
commit | 8d3f58c3917018a859917af377b8954910a3ba6e (patch) | |
tree | 002f775f6bd57514dfef4b97d58a638e67eff363 /apps/files/js/detailsview.js | |
parent | 43ab2082db0db30fd31e9597ed895e0cf3febe47 (diff) | |
download | nextcloud-server-8d3f58c3917018a859917af377b8954910a3ba6e.tar.gz nextcloud-server-8d3f58c3917018a859917af377b8954910a3ba6e.zip |
Jsunit fixes 1
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'apps/files/js/detailsview.js')
-rw-r--r-- | apps/files/js/detailsview.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/apps/files/js/detailsview.js b/apps/files/js/detailsview.js index 1d33987cd59..ac10b8380ef 100644 --- a/apps/files/js/detailsview.js +++ b/apps/files/js/detailsview.js @@ -118,8 +118,11 @@ */ render: function() { // remove old instances - $('#app-sidebar').remove(); - this.$el.insertAfter($('#app-content')); + if ($('#app-sidebar').length === 0) { + this.$el.insertAfter($('#app-content')); + } else { + $('#app-sidebar').replaceWith(this.$el) + } var templateVars = { closeLabel: t('files', 'Close') |