mirror of
https://github.com/frappe/air-datepicker.git
synced 2026-01-14 11:01:22 +08:00
fixed range slider hour value in 12hrs mode, fixes #102
This commit is contained in:
parent
d38e51532e
commit
2440a1168b
5
dist/js/datepicker.js
vendored
5
dist/js/datepicker.js
vendored
@ -1916,7 +1916,7 @@
|
|||||||
;(function () {
|
;(function () {
|
||||||
var template = '<div class="datepicker--time">' +
|
var template = '<div class="datepicker--time">' +
|
||||||
'<div class="datepicker--time-current">' +
|
'<div class="datepicker--time-current">' +
|
||||||
' <span class="datepicker--time-current-hours">#{hourValue}</span>' +
|
' <span class="datepicker--time-current-hours">#{hourVisible}</span>' +
|
||||||
' <span class="datepicker--time-current-colon">:</span>' +
|
' <span class="datepicker--time-current-colon">:</span>' +
|
||||||
' <span class="datepicker--time-current-minutes">#{minValue}</span>' +
|
' <span class="datepicker--time-current-minutes">#{minValue}</span>' +
|
||||||
'</div>' +
|
'</div>' +
|
||||||
@ -2030,7 +2030,8 @@
|
|||||||
hourMin: this.minHours,
|
hourMin: this.minHours,
|
||||||
hourMax: lz(this.maxHours),
|
hourMax: lz(this.maxHours),
|
||||||
hourStep: this.opts.hoursStep,
|
hourStep: this.opts.hoursStep,
|
||||||
hourValue: lz(this.displayHours),
|
hourValue: this.hours,
|
||||||
|
hourVisible: lz(this.displayHours),
|
||||||
minMin: this.minMinutes,
|
minMin: this.minMinutes,
|
||||||
minMax: lz(this.maxMinutes),
|
minMax: lz(this.maxMinutes),
|
||||||
minStep: this.opts.minutesStep,
|
minStep: this.opts.minutesStep,
|
||||||
|
|||||||
4
dist/js/datepicker.min.js
vendored
4
dist/js/datepicker.min.js
vendored
File diff suppressed because one or more lines are too long
@ -1,7 +1,7 @@
|
|||||||
;(function () {
|
;(function () {
|
||||||
var template = '<div class="datepicker--time">' +
|
var template = '<div class="datepicker--time">' +
|
||||||
'<div class="datepicker--time-current">' +
|
'<div class="datepicker--time-current">' +
|
||||||
' <span class="datepicker--time-current-hours">#{hourValue}</span>' +
|
' <span class="datepicker--time-current-hours">#{hourVisible}</span>' +
|
||||||
' <span class="datepicker--time-current-colon">:</span>' +
|
' <span class="datepicker--time-current-colon">:</span>' +
|
||||||
' <span class="datepicker--time-current-minutes">#{minValue}</span>' +
|
' <span class="datepicker--time-current-minutes">#{minValue}</span>' +
|
||||||
'</div>' +
|
'</div>' +
|
||||||
@ -115,7 +115,8 @@
|
|||||||
hourMin: this.minHours,
|
hourMin: this.minHours,
|
||||||
hourMax: lz(this.maxHours),
|
hourMax: lz(this.maxHours),
|
||||||
hourStep: this.opts.hoursStep,
|
hourStep: this.opts.hoursStep,
|
||||||
hourValue: lz(this.displayHours),
|
hourValue: this.hours,
|
||||||
|
hourVisible: lz(this.displayHours),
|
||||||
minMin: this.minMinutes,
|
minMin: this.minMinutes,
|
||||||
minMax: lz(this.maxMinutes),
|
minMax: lz(this.maxMinutes),
|
||||||
minStep: this.opts.minutesStep,
|
minStep: this.opts.minutesStep,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user