File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 752
752
// If the update was done in the input field, the input field should not be updated.
753
753
// If the update was done using the sliders, update the input field.
754
754
var hasChanged = (
755
- hour !== parseInt ( this . hour , 10 ) ||
755
+ hour !== parseInt ( this . hour , 10 ) || // sliders should all be numeric
756
756
minute !== parseInt ( this . minute , 10 ) ||
757
757
second !== parseInt ( this . second , 10 ) ||
758
758
millisec !== parseInt ( this . millisec , 10 ) ||
759
759
microsec !== parseInt ( this . microsec , 10 ) ||
760
760
( this . ampm . length > 0 && ( hour < 12 ) !== ( $ . inArray ( this . ampm . toUpperCase ( ) , this . amNames ) !== - 1 ) ) ||
761
- ( this . timezone !== null && timezone !== this . timezone . toString ( ) )
761
+ ( this . timezone !== null && timezone !== this . timezone . toString ( ) ) // could be numeric or "EST" format, so use toString()
762
762
) ;
763
763
764
764
if ( hasChanged ) {
Original file line number Diff line number Diff line change 758
758
// If the update was done in the input field, the input field should not be updated.
759
759
// If the update was done using the sliders, update the input field.
760
760
var hasChanged = (
761
- hour !== parseInt ( this . hour , 10 ) ||
761
+ hour !== parseInt ( this . hour , 10 ) || // sliders should all be numeric
762
762
minute !== parseInt ( this . minute , 10 ) ||
763
763
second !== parseInt ( this . second , 10 ) ||
764
764
millisec !== parseInt ( this . millisec , 10 ) ||
765
765
microsec !== parseInt ( this . microsec , 10 ) ||
766
766
( this . ampm . length > 0 && ( hour < 12 ) !== ( $ . inArray ( this . ampm . toUpperCase ( ) , this . amNames ) !== - 1 ) ) ||
767
- ( this . timezone !== null && timezone !== this . timezone . toString ( ) )
767
+ ( this . timezone !== null && timezone !== this . timezone . toString ( ) ) // could be numeric or "EST" format, so use toString()
768
768
) ;
769
769
770
770
if ( hasChanged ) {
You can’t perform that action at this time.
0 commit comments