mirror of
https://github.com/jquery/jquery-ui.git
synced 2026-01-30 00:17:59 -05:00
Fixed 3108 Allow ids with square brackets
Fixed 3113 Allow ids with colon or period
This commit is contained in:
@@ -177,7 +177,8 @@ $.extend(Datepicker.prototype, {
|
||||
|
||||
/* Create a new instance object. */
|
||||
_newInst: function(target, inline) {
|
||||
return {id: target[0].id, input: target, // associated target
|
||||
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
|
||||
inline: inline, // is datepicker inline or not
|
||||
|
||||
Reference in New Issue
Block a user