From 906ece0c02bd846dd1070bf1d94629a7a853945a Mon Sep 17 00:00:00 2001 From: j433866 Date: Thu, 20 Jun 2019 13:47:30 +0100 Subject: [PATCH] Remove loading files modal --- src/web/html/index.html | 14 ------------- src/web/waiters/InputWaiter.mjs | 36 --------------------------------- 2 files changed, 50 deletions(-) diff --git a/src/web/html/index.html b/src/web/html/index.html index 5d8b7df5..6d5cd828 100755 --- a/src/web/html/index.html +++ b/src/web/html/index.html @@ -883,19 +883,5 @@ - - - diff --git a/src/web/waiters/InputWaiter.mjs b/src/web/waiters/InputWaiter.mjs index e9e841c8..d2e97254 100644 --- a/src/web/waiters/InputWaiter.mjs +++ b/src/web/waiters/InputWaiter.mjs @@ -815,7 +815,6 @@ class InputWaiter { // Display the number of files as pending so the user // knows that we've received the files. - this.hideLoadingMessage(); this.showLoadingInfo({ pending: numFiles, loading: 0, @@ -836,43 +835,12 @@ class InputWaiter { }); } - /** - * Displays a message to show the app is loading files - */ - showLoadingMessage() { - $("#loading-files-modal").modal("show"); - } - - /** - * Hides the loading message - */ - hideLoadingMessage() { - $("#loading-files-modal").modal("hide"); - } - - /** - * Checks the length of the files input. - * If it's 0, hide loading message - */ - checkInputFiles() { - const fileInput = document.getElementById("open-file"); - const folderInput = document.getElementById("open-folder"); - - if (fileInput.value.length === 0 && folderInput.value.length === 0) { - this.hideLoadingMessage(); - } - } - /** * Handler for open input button click. * Opens the open file dialog. */ inputOpenClick() { - this.showLoadingMessage(); document.getElementById("open-file").click(); - - // When the document body regains focus, check if there's files in the input field - document.body.onfocus = this.checkInputFiles.bind(this); } /** @@ -880,11 +848,7 @@ class InputWaiter { * Opens the open folder dialog. */ folderOpenClick() { - this.showLoadingMessage(); document.getElementById("open-folder").click(); - - // When the document body regains focus, check if there's files in the input field - document.body.onfocus = this.checkInputFiles.bind(this); } /**