Skip to content

setting the defaultDate fills in a value when the input is emtpy #124

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
1 commit merged into from
Mar 15, 2011
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Preventing setting defaultDate on an empty input to set an (incorrect…
…) input value.
  • Loading branch information
harbulot committed Mar 13, 2011
commit cc80af42fe1ca6555c489c937929a49bba6a5468
4 changes: 2 additions & 2 deletions jquery-ui-timepicker-addon.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down Expand Up @@ -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);
}

};
Expand Down