aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/js/filelist.js
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@users.noreply.github.com>2019-11-13 18:19:17 +0100
committerGitHub <noreply@github.com>2019-11-13 18:19:17 +0100
commit634812ca1ec3c92bcd36aab546dcddb18ca90554 (patch)
treeabfae8ac56c31e83516831066c2ff89e298d03d6 /apps/files/js/filelist.js
parent51d3f98bfb83b632be6223a5d928d57e8e52e942 (diff)
parent16e0887ec63591113ee3f476e0c5129e20180cde (diff)
downloadnextcloud-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.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('//', '/'))
},
/**