Update to time_condition_edit.php (#1803)

When using 'time-of-day' it's not currently possible to specify a range which will finish at the end of the day.

This is a minor adjustment to allow the 'time-of-day' range to finish at 23:59.
This commit is contained in:
SJS87 2016-08-11 17:04:53 +01:00 committed by FusionPBX
parent 7929ef8a22
commit 31a8444fa5
1 changed files with 3 additions and 0 deletions

View File

@ -709,6 +709,9 @@
sel_stop.options[sel_stop.options.length] = new Option(((h != 0) ? ((h >= 12) ? ((h == 12) ? h : (h - 12)) + ':' + pad(m, 2) + ' PM' : h + ':' + pad(m, 2) + ' AM') : '12:' + pad(m, 2) + ' AM'), pad(h, 2) + ':' + pad(m, 2));
}
}
h = 23;
m = 59;
sel_stop.options[sel_stop.options.length] = new Option(((h != 0) ? ((h >= 12) ? ((h == 12) ? h : (h - 12)) + ':' + pad(m, 2) + ' PM' : h + ':' + pad(m, 2) + ' AM') : '12:' + pad(m, 2) + ' AM'), pad(h, 2) + ':' + pad(m, 2));
break;
}