]> source.dussan.org Git - jquery-ui.git/commitdiff
Datepicker: Fixed #4474 Pressing Return (keyCode 13) overwrites manually inserted...
authorKeith Wood <kbwood.au@gmail.com>
Sun, 26 Apr 2009 07:25:15 +0000 (07:25 +0000)
committerKeith Wood <kbwood.au@gmail.com>
Sun, 26 Apr 2009 07:25:15 +0000 (07:25 +0000)
ui/ui.datepicker.js

index b6178d703591fbb45481cdb543f9abd7666263a0..6cfa4f84746816d8f95e04e774a2c9d8ffcc463d 100644 (file)
@@ -513,11 +513,9 @@ $.extend(Datepicker.prototype, {
                }
        },
 
-       /* Synchronise manual entry and alternate field. */
+       /* Synchronise manual entry and field/alternate field. */
        _doKeyUp: function(event) {
                var inst = $.datepicker._getInst(event.target);
-               if (!$.datepicker._get(inst, 'altField'))
-                       return true;
                try {
                        var date = $.datepicker.parseDate($.datepicker._get(inst, 'dateFormat'),
                                (inst.input ? inst.input.val() : null),