From 92b12a457bddd59784ae14767c71e8ca53cb2ab1 Mon Sep 17 00:00:00 2001 From: Ali Ok Date: Sun, 1 Oct 2023 23:10:06 +0300 Subject: [PATCH] Click anywhere to trigger file selection --- services/ui-service/templates/index.html | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/services/ui-service/templates/index.html b/services/ui-service/templates/index.html index 6ab2496d..2cf96db6 100644 --- a/services/ui-service/templates/index.html +++ b/services/ui-service/templates/index.html @@ -201,6 +201,9 @@ + + +
@@ -216,7 +219,6 @@
-
@@ -407,6 +409,13 @@

Error

console.log("Disconnected from reply service!"); }); + $("#homeView").on("click", function (e) { + console.log("Opening file selection"); + $('#imageSelectInput').focus().trigger('click'); + e.preventDefault(); + return false; + }); + function callUpload() { $.ajax({ url: UPLOAD_SERVICE_URL,