Skip to main content

Bug Tracker

Side navigation

Ticket #2390: uidatepicker.enable.reattachfocus.patch
File uidatepicker.enable.reattachfocus.patch, 0.5 KB (added by mnichols, February 22, 2008 06:03PM UTC)

Reattaches focus event during enable

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