updated one text entry and variable declaration on JS
This commit is contained in:
parent
e861f6ac4e
commit
36d7cc0c3f
1 changed files with 3 additions and 3 deletions
|
|
@ -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";
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue