From 16e0887ec63591113ee3f476e0c5129e20180cde Mon Sep 17 00:00:00 2001 From: "John Molakvoæ (skjnldsv)" Date: Wed, 30 Oct 2019 11:58:14 +0100 Subject: Use function to open a sidebar file MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: John Molakvoæ (skjnldsv) --- apps/files/js/filelist.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'apps/files/js/filelist.js') 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('//', '/')) }, /** -- cgit v1.2.3