|
1 | | -/*! jQuery Timepicker Addon - v1.4.3 - 2013-11-30 |
| 1 | +/*! jQuery Timepicker Addon - v1.4.4 - 2013-11-30 |
2 | 2 | * http://trentrichardson.com/examples/timepicker |
3 | | -* Copyright (c) 2013 Trent Richardson; Licensed MIT */ |
| 3 | +* Copyright (c) 2014 Trent Richardson; Licensed MIT */ |
4 | 4 | (function ($) { |
5 | 5 |
|
6 | 6 | /* |
|
16 | 16 | */ |
17 | 17 | $.extend($.ui, { |
18 | 18 | timepicker: { |
19 | | - version: "1.4.3" |
| 19 | + version: "1.4.4" |
20 | 20 | } |
21 | 21 | }); |
22 | 22 |
|
|
668 | 668 | microsecMax = parseInt((this._defaults.microsecMax - ((this._defaults.microsecMax - this._defaults.microsecMin) % this._defaults.stepMicrosec)), 10); |
669 | 669 |
|
670 | 670 | if (this.hour_slider) { |
671 | | - this.control.options(this, this.hour_slider, 'hour', { min: this._defaults.hourMin, max: hourMax }); |
| 671 | + this.control.options(this, this.hour_slider, 'hour', { min: this._defaults.hourMin, max: hourMax, step: this._defaults.stepHour }); |
672 | 672 | this.control.value(this, this.hour_slider, 'hour', this.hour - (this.hour % this._defaults.stepHour)); |
673 | 673 | } |
674 | 674 | if (this.minute_slider) { |
675 | | - this.control.options(this, this.minute_slider, 'minute', { min: this._defaults.minuteMin, max: minMax }); |
| 675 | + this.control.options(this, this.minute_slider, 'minute', { min: this._defaults.minuteMin, max: minMax, step: this._defaults.stepMinute }); |
676 | 676 | this.control.value(this, this.minute_slider, 'minute', this.minute - (this.minute % this._defaults.stepMinute)); |
677 | 677 | } |
678 | 678 | if (this.second_slider) { |
679 | | - this.control.options(this, this.second_slider, 'second', { min: this._defaults.secondMin, max: secMax }); |
| 679 | + this.control.options(this, this.second_slider, 'second', { min: this._defaults.secondMin, max: secMax, step: this._defaults.stepSecond }); |
680 | 680 | this.control.value(this, this.second_slider, 'second', this.second - (this.second % this._defaults.stepSecond)); |
681 | 681 | } |
682 | 682 | if (this.millisec_slider) { |
683 | | - this.control.options(this, this.millisec_slider, 'millisec', { min: this._defaults.millisecMin, max: millisecMax }); |
| 683 | + this.control.options(this, this.millisec_slider, 'millisec', { min: this._defaults.millisecMin, max: millisecMax, step: this._defaults.stepMillisec }); |
684 | 684 | this.control.value(this, this.millisec_slider, 'millisec', this.millisec - (this.millisec % this._defaults.stepMillisec)); |
685 | 685 | } |
686 | 686 | if (this.microsec_slider) { |
687 | | - this.control.options(this, this.microsec_slider, 'microsec', { min: this._defaults.microsecMin, max: microsecMax }); |
| 687 | + this.control.options(this, this.microsec_slider, 'microsec', { min: this._defaults.microsecMin, max: microsecMax, step: this._defaults.stepMicrosec }); |
688 | 688 | this.control.value(this, this.microsec_slider, 'microsec', this.microsec - (this.microsec % this._defaults.stepMicrosec)); |
689 | 689 | } |
690 | 690 | } |
|
1342 | 1342 | var inst = this._getInst($(id)[0]), |
1343 | 1343 | tp_inst = this._get(inst, 'timepicker'); |
1344 | 1344 |
|
1345 | | - if (tp_inst) { |
| 1345 | + if (tp_inst && inst.settings.showTimepicker) { |
1346 | 1346 | tp_inst._limitMinMaxDateTime(inst, true); |
1347 | 1347 | inst.inline = inst.stay_open = true; |
1348 | 1348 | //This way the onSelect handler called from calendarpicker get the full dateTime |
|
2140 | 2140 | /* |
2141 | 2141 | * Keep up with the version |
2142 | 2142 | */ |
2143 | | - $.timepicker.version = "1.4.3"; |
| 2143 | + $.timepicker.version = "1.4.4"; |
2144 | 2144 |
|
2145 | 2145 | })(jQuery); |
0 commit comments