You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 12, 2020. It is now read-only.
$('form[data-toggle="validator"]').validator({
custom: {
nextpay_d: function($el) {
var n_d = $('#nextpay_d').val();
var n_m = $('#nextpay_m').val();
var n = isWeekend(n_d, n_m);
if (n == 6 || n == 0){
return "This date falls on the weekend!";
}
},
followpay_d: function($e2) {
var date1 = new Date();
var date2 = new Date();
var n_d = $('#nextnextpay_d').val();
var n_m = $('#nextnextpay_m').val();
date2.setMonth(n_m-1, n_d);
var n = isWeekend(n_d, n_m);
if (n == 6 || n == 0){
return "This date falls on the weekend!";
}elseif(date2 <= date1){
return "This date must be higher!";
}
}
}
});