[UPDT] BASE: Holiday import by adding csv file import option
This commit is contained in:
@@ -446,7 +446,7 @@ function initializeSummernote(candId,searchWords,) {
|
||||
function validateFile(element,fileTarget,reload=false) {
|
||||
var fileInput = document.getElementById(fileTarget);
|
||||
var filePath = fileInput.value;
|
||||
var allowedExtensions = /(\.xlsx)$/i;
|
||||
var allowedExtensions = /(\.xlsx|\.csv)$/i;
|
||||
|
||||
if (!allowedExtensions.exec(filePath)) {
|
||||
Swal.fire({
|
||||
|
||||
Reference in New Issue
Block a user