r2500 - Datepicker: Fixed #4474 Pressing Return (keyCode 13) overwrites manually inserted input i...

r2500 - Datepicker: Fixed #4474 Pressing Return (keyCode 13) overwrites manually inserted input i...


Author: kbwood.au
Date: Sun Apr 26 00:25:15 2009
New Revision: 2500
Modified:
trunk/ui/ui.datepicker.js
Log:
Datepicker: Fixed #4474 Pressing Return (keyCode 13) overwrites manually
inserted input in DatePicker
Modified: trunk/ui/ui.datepicker.js
==============================================================================
--- trunk/ui/ui.datepicker.js    (original)
+++ trunk/ui/ui.datepicker.js    Sun Apr 26 00:25:15 2009
@@ -513,11 +513,9 @@
        }
    },
-    /* 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),