diff options
author | Bruno Harbulot <bruno@distributedmatter.net> | 2011-03-13 20:27:16 +0000 |
---|---|---|
committer | Bruno Harbulot <bruno@distributedmatter.net> | 2011-03-13 20:27:16 +0000 |
commit | cc80af42fe1ca6555c489c937929a49bba6a5468 (patch) | |
tree | dc5e44c41cfcd1220909e0172e1f03d3f6e7fbf7 | |
parent | caf2916169b2db635007604641b682d9979e121e (diff) | |
download | jQuery-Timepicker-Addon-cc80af42fe1ca6555c489c937929a49bba6a5468.zip jQuery-Timepicker-Addon-cc80af42fe1ca6555c489c937929a49bba6a5468.tar.gz jQuery-Timepicker-Addon-cc80af42fe1ca6555c489c937929a49bba6a5468.tar.bz2 |
Preventing setting defaultDate on an empty input to set an (incorrect) input value.
-rw-r--r-- | jquery-ui-timepicker-addon.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/jquery-ui-timepicker-addon.js b/jquery-ui-timepicker-addon.js index 4e74547..65a0b8d 100644 --- a/jquery-ui-timepicker-addon.js +++ b/jquery-ui-timepicker-addon.js @@ -721,7 +721,7 @@ $.fn.extend({ datetimepicker: function(o) { o = o || {}; var $input = this, - tmp_args = arguments; + tmp_args = arguments; if (typeof(o) == 'string'){ if(o == 'getDate') @@ -908,8 +908,8 @@ $.datepicker._setTimeDatepicker = function(target, date, withDate) { } else tp_date = new Date(date.getTime()); if (tp_date.toString() == 'Invalid Date') tp_date = undefined; + this._setTime(inst, tp_date); } - this._setTime(inst, tp_date); } }; |