From 864c368c10c9e9ec881050645671496ad9123ccc Mon Sep 17 00:00:00 2001 From: Luca Trupiano Date: Thu, 20 Apr 2023 16:53:06 +0200 Subject: [PATCH] Corretto bug "carica stessa query" --- js/script_4.3.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/js/script_4.3.js b/js/script_4.3.js index f31abb5..dd13542 100644 --- a/js/script_4.3.js +++ b/js/script_4.3.js @@ -392,9 +392,12 @@ $(document).ready(function() { queryJson = JSON.parse(data.target.result) makeUpGui(queryJson); }; - if (file) {reader.readAsText(file);} + if (file !== '') { + reader.readAsText(file); + $("#apriFile")[0].value = ''; + }; }); - + // Evento: SCELTA CATEGORIA GRAMMATICALE $('#cla-TabContent').on('change', 'select.catgram', function(e) { e.preventDefault();