Skip to content

Commit 47ddf94

Browse files
Fixes trentrichardson#764 - Parse fails with altField with just time
1 parent 6db7a1f commit 47ddf94

4 files changed

+5
-5
lines changed

dist/jquery-ui-timepicker-addon.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@
307307
* add our sliders to the calendar
308308
*/
309309
_addTimePicker: function (dp_inst) {
310-
var currDT = (this.$altInput && this._defaults.altFieldTimeOnly) ? this.$input.val() + ' ' + this.$altInput.val() : this.$input.val();
310+
var currDT = $.trim((this.$altInput && this._defaults.altFieldTimeOnly) ? this.$input.val() + ' ' + this.$altInput.val() : this.$input.val());
311311

312312
this.timeDefined = this._parseTime(currDT);
313313
this._limitMinMaxDateTime(dp_inst, false);

dist/jquery-ui-timepicker-addon.min.css

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/jquery-ui-timepicker-addon.min.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/jquery-ui-timepicker-addon.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@
313313
* add our sliders to the calendar
314314
*/
315315
_addTimePicker: function (dp_inst) {
316-
var currDT = (this.$altInput && this._defaults.altFieldTimeOnly) ? this.$input.val() + ' ' + this.$altInput.val() : this.$input.val();
316+
var currDT = $.trim((this.$altInput && this._defaults.altFieldTimeOnly) ? this.$input.val() + ' ' + this.$altInput.val() : this.$input.val());
317317

318318
this.timeDefined = this._parseTime(currDT);
319319
this._limitMinMaxDateTime(dp_inst, false);

0 commit comments

Comments
 (0)