Skip to main content

Bug Tracker

Side navigation

Ticket #2533: uidatepicker.enable.reattachfocus.patch


File uidatepicker.enable.reattachfocus.patch, 0.5 KB (added by mnichols, March 17, 2008 06:21AM UTC)

datepicker focus reattachment

Index: ui.datepicker.js
===================================================================
--- ui.datepicker.js	(revision 4813)
+++ ui.datepicker.js	(working copy)
@@ -201,6 +201,7 @@
 		var $target = target;
 		this._disabledInputs = $.map(this._disabledInputs,
 			function(value) { return (value == $target ? null : value); }); // delete entry
+        $target.focus(this._showDatepicker);			
 	},
 
 	/* Disable the date picker to a jQuery selection.

Download in other formats:

Original Format