summaryrefslogtreecommitdiffstats
path: root/apps/files/js/filelist.js
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files/js/filelist.js')
-rw-r--r--apps/files/js/filelist.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js
index 0424ba2006b..d2a23283f12 100644
--- a/apps/files/js/filelist.js
+++ b/apps/files/js/filelist.js
@@ -613,7 +613,7 @@
console.warn('showDetailsView is deprecated! Use OCA.Files.Sidebar.activeTab. It will be removed in nextcloud 20.');
this._updateDetailsView(fileName);
if (tabId) {
- OCA.Files.Sidebar.activeTab = tabId;
+ OCA.Files.Sidebar.setActiveTab(tabId);
}
},
@@ -630,7 +630,7 @@
}
if (!fileName) {
- OCA.Files.Sidebar.file = null
+ OCA.Files.Sidebar.close()
return
} else if (typeof fileName !== 'string') {
fileName = ''
@@ -644,7 +644,7 @@
var path = model.attributes.path + '/' + model.attributes.name
// open sidebar and set file
- OCA.Files.Sidebar.file = path.replace('//', '/')
+ OCA.Files.Sidebar.open(path.replace('//', '/'))
},
/**