From: Scott González Date: Mon, 25 Jul 2011 15:13:54 +0000 (-0400) Subject: Datepicker: Use .attr() for size. X-Git-Tag: 1.9m6~104 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=f59a3e91e31379663983377f9dbd682e7bc67834;p=jquery-ui.git Datepicker: Use .attr() for size. --- diff --git a/ui/jquery.ui.datepicker.js b/ui/jquery.ui.datepicker.js index bf42f0411..aa42c972e 100644 --- a/ui/jquery.ui.datepicker.js +++ b/ui/jquery.ui.datepicker.js @@ -254,7 +254,7 @@ $.extend(Datepicker.prototype, { date.setDate(findMax(this._get(inst, (dateFormat.match(/DD/) ? 'dayNames' : 'dayNamesShort'))) + 20 - date.getDay()); } - inst.input.prop('size', this._formatDate(inst, date).length); + inst.input.attr('size', this._formatDate(inst, date).length); } },