From a213f4e89fdee530bf041d0cc5f87af66b3b9f18 Mon Sep 17 00:00:00 2001 From: Wu Han Date: Fri, 8 Jan 2021 19:40:20 +0000 Subject: [PATCH] [fix] drag event not listened --- resources/index.html | 12 ++++++------ resources/js/script.js | 3 ++- resources/js/socket_script.js | 2 +- 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/resources/index.html b/resources/index.html index 22527a7..6c36b6c 100644 --- a/resources/index.html +++ b/resources/index.html @@ -268,7 +268,7 @@ ulysses16 - Inf + - Inf txt    json @@ -279,7 +279,7 @@ att48 - Inf + - Inf txt    json @@ -290,7 +290,7 @@ st70 - Inf + - Inf txt    json @@ -301,7 +301,7 @@ a280 - Inf + - Inf txt    json @@ -312,7 +312,7 @@ pcb442 - Inf + - Inf txt    json @@ -323,7 +323,7 @@ dsj1000 - Inf + - Inf txt    json diff --git a/resources/js/script.js b/resources/js/script.js index 10ebc65..9beaae7 100644 --- a/resources/js/script.js +++ b/resources/js/script.js @@ -136,7 +136,8 @@ $( document ).ready( () => { var url = window.location; // Upload File - $('#uploadfile').change(function(e){ + $('#uploadfile').on('fileloaded', function(e) + { if(e.target.files[0]) { var fileName = e.target.files[0].name; diff --git a/resources/js/socket_script.js b/resources/js/socket_script.js index 813e849..42ffedc 100644 --- a/resources/js/socket_script.js +++ b/resources/js/socket_script.js @@ -42,7 +42,7 @@ socket.on('start', () => { Snackbar.show({ text: 'Running, please wait for your result.', pos: 'bottom-right', - duration: 60000 + duration: 10000 }); });