mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Datepicker: avoid ambiguous + ++ in min file. Partial fix for #5576 - invalid increment operand
This commit is contained in:
parent
37e8dd605d
commit
0ad5ac7382
9
ui/jquery.ui.datepicker.js
vendored
9
ui/jquery.ui.datepicker.js
vendored
@ -153,8 +153,10 @@ $.extend(Datepicker.prototype, {
|
|||||||
}
|
}
|
||||||
var nodeName = target.nodeName.toLowerCase();
|
var nodeName = target.nodeName.toLowerCase();
|
||||||
var inline = (nodeName == 'div' || nodeName == 'span');
|
var inline = (nodeName == 'div' || nodeName == 'span');
|
||||||
if (!target.id)
|
if (!target.id) {
|
||||||
target.id = 'dp' + (++this.uuid);
|
this.uuid += 1;
|
||||||
|
target.id = 'dp' + this.uuid;
|
||||||
|
}
|
||||||
var inst = this._newInst($(target), inline);
|
var inst = this._newInst($(target), inline);
|
||||||
inst.settings = $.extend({}, settings || {}, inlineSettings || {});
|
inst.settings = $.extend({}, settings || {}, inlineSettings || {});
|
||||||
if (nodeName == 'input') {
|
if (nodeName == 'input') {
|
||||||
@ -285,7 +287,8 @@ $.extend(Datepicker.prototype, {
|
|||||||
_dialogDatepicker: function(input, date, onSelect, settings, pos) {
|
_dialogDatepicker: function(input, date, onSelect, settings, pos) {
|
||||||
var inst = this._dialogInst; // internal instance
|
var inst = this._dialogInst; // internal instance
|
||||||
if (!inst) {
|
if (!inst) {
|
||||||
var id = 'dp' + (++this.uuid);
|
this.uuid += 1;
|
||||||
|
var id = 'dp' + this.uuid;
|
||||||
this._dialogInput = $('<input type="text" id="' + id +
|
this._dialogInput = $('<input type="text" id="' + id +
|
||||||
'" style="position: absolute; top: -100px; width: 0px; z-index: -10;"/>');
|
'" style="position: absolute; top: -100px; width: 0px; z-index: -10;"/>');
|
||||||
this._dialogInput.keydown(this._doKeyDown);
|
this._dialogInput.keydown(this._doKeyDown);
|
||||||
|
Loading…
Reference in New Issue
Block a user