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:
-rw-r--r--src/document.js19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/document.js b/src/document.js
index ef060ec2..15cb0949 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')
}