#13453 remove repetition of warning modal when a date greater than 30 days is selected

This commit is contained in:
Jorge Rincon 2024-04-24 15:34:20 +02:00
parent 0c2209713a
commit ec7626dcf4
1 changed files with 3 additions and 9 deletions

View File

@ -2566,19 +2566,13 @@ function menuActionButtonResizing() {
function check_period_warning(time, title, message) { function check_period_warning(time, title, message) {
var period = time.value; var period = time.value;
var times = 0;
if (period >= 2592000 && period < 7776000) { if (period >= 2592000 && period < 7776000) {
WarningPeriodicityModal(title, message); WarningPeriodicityModal(title, message);
} else if (period >= 7776000 && period < 15552000) { } else if (period >= 7776000 && period < 15552000) {
do {
WarningPeriodicityModal(title, message); WarningPeriodicityModal(title, message);
times = times + 1;
} while (times < 2);
} else if (period >= 15552000) { } else if (period >= 15552000) {
do {
WarningPeriodicityModal(title, message); WarningPeriodicityModal(title, message);
times = times + 1;
} while (times < 3);
} }
} }