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

This commit is contained in:
Keith Wood 2009-07-22 08:34:27 +00:00
parent 61e15b1f76
commit d2bd01aecb

View File

@ -156,7 +156,7 @@ $.extend(Datepicker.prototype, {
/* 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