r2956 commited - Datepicker: Fixed #4684 Datepicker bug when textbox id contains '$'

r2956 commited - Datepicker: Fixed #4684 Datepicker bug when textbox id contains '$'


Revision: 2956
Author: kbwood.au
Date: Wed Jul 22 01:34:27 2009
Log: Datepicker: Fixed #4684 Datepicker bug when textbox id contains '$'
http://code.google.com/p/jquery-ui/source/detail?r=2956
Modified:
/trunk/ui/ui.datepicker.js
=======================================
--- /trunk/ui/ui.datepicker.js    Wed Jul 22 01:28:01 2009
+++ /trunk/ui/ui.datepicker.js    Wed Jul 22 01:34:27 2009
@@ -156,7 +156,7 @@
    /* Create a new instance object. */
    _newInst: function(target, inline) {
-        var id = target[0].id.replace(/([:\[\]\.])/g, '\\\\$1'); // escape
jQuery meta chars
+        var id = target[0].id.replace(/([:\[\]\.\$])/g, '\\\\$1'); // escape
jQuery meta chars
        return {id: id, input: target, // associated target
            selectedDay: 0, selectedMonth: 0, selectedYear: 0, // current selection
            drawMonth: 0, drawYear: 0, // month being drawn