mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
Datepicker: fixed problem on ids with. Fixed #6154 – Datepicker brokes handler ids with dashes
This commit is contained in:
parent
7da662410b
commit
66346d04bf
2
ui/jquery.ui.datepicker.js
vendored
2
ui/jquery.ui.datepicker.js
vendored
@ -167,7 +167,7 @@ $.extend(Datepicker.prototype, {
|
|||||||
|
|
||||||
/* Create a new instance object. */
|
/* Create a new instance object. */
|
||||||
_newInst: function(target, inline) {
|
_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
|
return {id: id, input: target, // associated target
|
||||||
selectedDay: 0, selectedMonth: 0, selectedYear: 0, // current selection
|
selectedDay: 0, selectedMonth: 0, selectedYear: 0, // current selection
|
||||||
drawMonth: 0, drawYear: 0, // month being drawn
|
drawMonth: 0, drawYear: 0, // month being drawn
|
||||||
|
Loading…
Reference in New Issue
Block a user