File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change 472
472
formattedDateTime = this . formattedTime ;
473
473
}
474
474
else if ( this . defaults . timeOnly !== true && ( this . defaults . alwaysSetTime || timeAvailable ) ) {
475
- formattedDateTime += ' ' + this . formattedTime ;
476
- }
477
-
478
- if ( ( this . $altInput ) && this . $altInput != null )
479
- {
480
- this . $altInput . val ( formattedDateTime ) ;
475
+ if ( ( this . $altInput ) && this . $altInput != null )
476
+ {
477
+ this . $altInput . val ( this . formattedTime ) ;
478
+ }
479
+ else {
480
+ formattedDateTime += ' ' + this . formattedTime ;
481
+ }
481
482
}
482
483
483
484
this . formattedDateTime = formattedDateTime ;
518
519
tp . second = tp . defaults . second ;
519
520
tp . ampm = '' ;
520
521
tp . $input = $ ( input ) ;
521
- tp . $altInput = $ ( $ . datepicker . _get ( inst , 'altField' ) ) ;
522
+ if ( opts . altField != undefined && opts . altField != '' )
523
+ tp . $altInput = $ ( $ . datepicker . _get ( inst , 'altField' ) ) ;
522
524
tp . inst = inst ;
523
525
tp . addTimePicker ( inst ) ;
524
526
if ( $ . isFunction ( opts . beforeShow ) ) {
You can’t perform that action at this time.
0 commit comments