Skip to content

Commit c63c257

Browse files
Merge pull request trentrichardson#714 from jhron/patch-1
Add support for ('setDate', null)
2 parents 31c19d9 + 7fa5651 commit c63c257

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/jquery-ui-timepicker-addon.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1490,11 +1490,11 @@
14901490
altFormattedDateTime = tp_inst.formattedDate + altSeparator + altFormattedDateTime;
14911491
}
14921492
}
1493-
$(altField).val(altFormattedDateTime);
1493+
$(altField).val( inst.input.val() ? altFormattedDateTime : "");
14941494
}
14951495
}
14961496
else {
1497-
$.datepicker._base_updateAlternate(inst);
1497+
$.datepicker._base_updateAlternate(inst);
14981498
}
14991499
};
15001500

0 commit comments

Comments
 (0)