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
path: root/src
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2020-11-04 13:53:31 +0300
committerJulius Härtl <jus@bitgrid.net>2020-11-04 13:53:31 +0300
commit81f148df4701b236c350ff37cd4735ed519a1ee5 (patch)
treef298b2268be83fe32b06313f06975baf22904358 /src
parent204d39482eb7660fa027bf1b395e6f4d34d9454f (diff)
Add close method and document public documentsMain methods
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'src')
-rw-r--r--src/document.js19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/document.js b/src/document.js
index 608c411f..5247c492 100644
--- a/src/document.js
+++ b/src/document.js
@@ -560,6 +560,20 @@ const documentsMain = {
$('#loleafletframe').focus()
},
+ /**
+ * Called by mobile clients to properly end the COOL session
+ *
+ * @public
+ */
+ close: function() {
+ documentsMain.onClose()
+ },
+
+ /**
+ * Called by mobile clients post a selected graphic to COOL
+ *
+ * @public
+ */
postAsset: function(filename, url) {
PostMessages.sendWOPIPostMessage('loolframe', 'Action_InsertGraphic', {
filename: filename,
@@ -567,6 +581,11 @@ const documentsMain = {
})
},
+ /**
+ * Called by mobile clients to indicate that their app got back to an active state
+ *
+ * @public
+ */
postGrabFocus: function() {
PostMessages.sendWOPIPostMessage('loolframe', 'Grab_Focus')
}