Skip to content

Commit

Permalink
Datepicker: fixed problem on ids with. Fixed #6154 – Datepicker broke…
Browse files Browse the repository at this point in the history
…s handler ids with dashes
  • Loading branch information
m157y authored and scottgonzalez committed Oct 6, 2010
1 parent 7da6624 commit 66346d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/jquery.ui.datepicker.js
Expand Up @@ -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
Expand Down

0 comments on commit 66346d0

Please sign in to comment.