Attendance/static/pagejs/uploadcsv.js

10 lines
238 B
JavaScript
Vendored

function loadingAnimation() {
// if csv is empty
if ($("#csv").val() == "") {
alert("Please select a file!");
return;
}
$('#uploadCsvForm').submit();
$('.container').hide();
$('#loading').show();
}