aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.datepicker.js
diff options
context:
space:
mode:
authorm157y <ru.m157y@gmail.com>2010-10-06 00:09:59 -0700
committerScott González <scott.gonzalez@gmail.com>2010-10-06 08:37:25 -0400
commit66346d04bfa4e9a80ae25a670ea06d9ea7a48e4d (patch)
tree32b57c3fedf829aa6ed5db17f06ae28c2f93a23e /ui/jquery.ui.datepicker.js
parent7da662410b67ff2a1538b5d24839ce3e4d78b2b9 (diff)
downloadjquery-ui-66346d04bfa4e9a80ae25a670ea06d9ea7a48e4d.tar.gz
jquery-ui-66346d04bfa4e9a80ae25a670ea06d9ea7a48e4d.zip
Datepicker: fixed problem on ids with. Fixed #6154 – Datepicker brokes handler ids with dashes
Diffstat (limited to 'ui/jquery.ui.datepicker.js')
-rw-r--r--ui/jquery.ui.datepicker.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/jquery.ui.datepicker.js b/ui/jquery.ui.datepicker.js
index ccbcc6dac..678129e49 100644
--- a/ui/jquery.ui.datepicker.js
+++ b/ui/jquery.ui.datepicker.js
@@ -167,7 +167,7 @@ $.extend(Datepicker.prototype, {
/* Create a new instance object. */
_newInst: function(target, inline) {
- var id = target[0].id.replace(/([^A-Za-z0-9_])/g, '\\\\$1'); // escape jQuery meta chars
+ var id = target[0].id.replace(/([^A-Za-z0-9_-])/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