Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/richdocuments.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2019-03-04 12:54:11 +0300
committerJulius Härtl <jus@bitgrid.net>2019-03-04 12:54:11 +0300
commit50db096bca3dc08c59b59cba4279c06f6c998a8a (patch)
treea0048f70b341e0a815a6c41d9c9aee6a6c984124 /js/documents.js
parent2d91e16fe51bd24d1ec4095212513ea08e766d66 (diff)
Open sharing sidebar on post message
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'js/documents.js')
-rw-r--r--js/documents.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/js/documents.js b/js/documents.js
index 6490826e..8e66b90f 100644
--- a/js/documents.js
+++ b/js/documents.js
@@ -713,6 +713,11 @@ var documentsMain = {
return;
documentsMain.UI.showRevHistory(documentsMain.fullPath);
+ } else if (msgId === 'UI_Share') {
+ if (documentsMain.getFileList()) {
+ documentsMain.getFileList().showDetailsView(documentsMain.fileName, 'shareTabView');
+ parent.OC.Apps.showAppSidebar();
+ }
} else if (msgId === 'UI_SaveAs') {
// TODO it's not possible to enter the
// filename into the OC.dialogs.filepicker; so