updated one text entry and variable declaration on JS

This commit is contained in:
Luis Aleixo 2023-07-10 15:50:15 +01:00
parent e861f6ac4e
commit 36d7cc0c3f

View file

@ -36,8 +36,8 @@ function upload_file() {
alert("Please choose any file...");
return;
}
var filename = files[0].name;
var extension = filename.substring(filename.lastIndexOf(".")).toUpperCase();
const filename = files[0].name;
const extension = filename.substring(filename.lastIndexOf(".")).toUpperCase();
if (extension == ".XLS" || extension == ".XLSX") {
//Here calling another method to read excel file into json
excelFileToJSON(files[0]);
@ -92,7 +92,7 @@ function displayJsonToHtmlTable(jsonData) {
format.value = JSON.stringify(structure);
$('#generate_fitting_data').prop("disabled", false);
} else {
table.innerHTML = "There is no data in Excel";
table.innerHTML = "There is no data in the spreadsheet file";
}
}