mirror of
https://github.com/xdan/datetimepicker.git
synced 2024-11-18 06:24:22 +00:00
Merge pull request #618 from rglasser27/fix-time-selection
Fix broken time steps
This commit is contained in:
commit
5ba8971989
@ -1771,7 +1771,7 @@ var datetimepickerFactory = function ($) {
|
|||||||
for (i = 0, j = 0; i < (options.hours12 ? 12 : 24); i += 1) {
|
for (i = 0, j = 0; i < (options.hours12 ? 12 : 24); i += 1) {
|
||||||
for (j = 0; j < 60; j += options.step) {
|
for (j = 0; j < 60; j += options.step) {
|
||||||
h = (i < 10 ? '0' : '') + i;
|
h = (i < 10 ? '0' : '') + i;
|
||||||
m = (j < 10 ? _xdsoft_datetime.now().getMinutes() : '') + j;
|
m = (j < 10 ? '0' : '') + j;
|
||||||
line_time(h, m);
|
line_time(h, m);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user