Skip to content

Commit 66346d0

Browse files
m157yscottgonzalez
authored andcommitted
Datepicker: fixed problem on ids with. Fixed #6154 – Datepicker brokes handler ids with dashes
1 parent 7da6624 commit 66346d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/jquery.ui.datepicker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ $.extend(Datepicker.prototype, {
167167

168168
/* Create a new instance object. */
169169
_newInst: function(target, inline) {
170-
var id = target[0].id.replace(/([^A-Za-z0-9_])/g, '\\\\$1'); // escape jQuery meta chars
170+
var id = target[0].id.replace(/([^A-Za-z0-9_-])/g, '\\\\$1'); // escape jQuery meta chars
171171
return {id: id, input: target, // associated target
172172
selectedDay: 0, selectedMonth: 0, selectedYear: 0, // current selection
173173
drawMonth: 0, drawYear: 0, // month being drawn

0 commit comments

Comments
 (0)