aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorKeith Wood <kbwood.au@gmail.com>2009-07-22 08:34:27 +0000
committerKeith Wood <kbwood.au@gmail.com>2009-07-22 08:34:27 +0000
commitd2bd01aecbd71920523dd08788211db037d5bccc (patch)
tree9f8253c3ca16e3b36a0a7f5e17a69b27e7b8a175 /ui
parent61e15b1f76e27596b41d95b2b18c5df7f9eaa89f (diff)
downloadjquery-ui-d2bd01aecbd71920523dd08788211db037d5bccc.tar.gz
jquery-ui-d2bd01aecbd71920523dd08788211db037d5bccc.zip
Datepicker: Fixed #4684 Datepicker bug when textbox id contains '$'
Diffstat (limited to 'ui')
-rw-r--r--ui/ui.datepicker.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/ui.datepicker.js b/ui/ui.datepicker.js
index a106ed291..b88460456 100644
--- a/ui/ui.datepicker.js
+++ b/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