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/js
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2018-11-11 22:25:58 +0300
committerRoeland Jago Douma <roeland@famdouma.nl>2018-11-11 22:26:33 +0300
commit57ce4472cf338ab474bb3753af5d432863682832 (patch)
tree130da19cb878c565d10b6aa214bdb878d47fbecb /js
parentc8e8919403803998ab4c245d97b2c932d99bd1f4 (diff)
Hide loading overlay sooner to show password promt
Fixes #307 Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'js')
-rw-r--r--js/documents.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/documents.js b/js/documents.js
index 5f8fbc2d..f4c69892 100644
--- a/js/documents.js
+++ b/js/documents.js
@@ -447,9 +447,7 @@ console.log(view);
if (msg.MessageId === 'App_LoadingStatus') {
if (msg.Values.Status === "Frame_Ready" ) {
documentsMain.wopiClientFeatures = msg.Values.Features;
- } else if (msg.Values.Status === "Document_Loaded" ) {
documentsMain.overlay.documentOverlay('hide');
- window.removeEventListener('message', editorInitListener, false);
// Forward to mobile handler
if (window.RichDocumentsMobileInterface) {
@@ -462,6 +460,8 @@ console.log(view);
&& window.webkit.messageHandlers.RichDocumentsMobileInterface) {
window.webkit.messageHandlers.RichDocumentsMobileInterface.postMessage('documentLoaded');
}
+ } else if (msg.Values.Status === "Document_Loaded" ) {
+ window.removeEventListener('message', editorInitListener, false);
}
}
};