diff --git a/application/views/payslipgenerate.php b/application/views/payslipgenerate.php index 71107592..9bce7815 100755 --- a/application/views/payslipgenerate.php +++ b/application/views/payslipgenerate.php @@ -76,6 +76,7 @@ $(function() { if(check){ var c=0; + var time=0; $('#Employee').find('option').each(function() { c++; var employee=$(this).val(); @@ -110,9 +111,13 @@ $(function() { }); - alert(c + 'Employees Salary Added Successfully!'); - $('form#PayslipGenerator').submit(); - $('#content').loader('hide'); + time = (c * 300); + // alert(time); + setTimeout(function(){alert(c + '-Employees Salary Added Successfully!'); + $('form#PayslipGenerator').submit(); + alert("Please wait while Payslip Downloading...!"); + $('#content').loader('hide'); + },time); @@ -251,7 +256,7 @@ $(function() { { ?>