[UPDT] BASE: Holiday import by adding csv file import option

This commit is contained in:
Horilla
2024-10-25 15:34:12 +05:30
parent b48ebf7fe4
commit 6e2aa084e8
26 changed files with 5419 additions and 139 deletions

View File

@@ -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({