diff options
author | John Molakvoæ <skjnldsv@users.noreply.github.com> | 2019-11-13 18:19:17 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-13 18:19:17 +0100 |
commit | 634812ca1ec3c92bcd36aab546dcddb18ca90554 (patch) | |
tree | abfae8ac56c31e83516831066c2ff89e298d03d6 /apps/files/js/filelist.js | |
parent | 51d3f98bfb83b632be6223a5d928d57e8e52e942 (diff) | |
parent | 16e0887ec63591113ee3f476e0c5129e20180cde (diff) | |
download | nextcloud-server-634812ca1ec3c92bcd36aab546dcddb18ca90554.tar.gz nextcloud-server-634812ca1ec3c92bcd36aab546dcddb18ca90554.zip |
Use function to open a sidebar file (#17750)
Use function to open a sidebar file
Diffstat (limited to 'apps/files/js/filelist.js')
-rw-r--r-- | apps/files/js/filelist.js | 6 |
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('//', '/')) }, /** |