Skip to content
Permalink
Browse files

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

  • Loading branch information
Keith Wood
Keith Wood committed Jul 22, 2009
1 parent 61e15b1 commit d2bd01aecbd71920523dd08788211db037d5bccc
Showing with 1 addition and 1 deletion.
  1. +1 −1 ui/ui.datepicker.js
@@ -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

0 comments on commit d2bd01a

Please sign in to comment.
You can’t perform that action at this time.