]> source.dussan.org Git - jquery-ui.git/commitdiff
Datepicker: Use .attr() for size.
authorScott González <scott.gonzalez@gmail.com>
Mon, 25 Jul 2011 15:13:54 +0000 (11:13 -0400)
committerScott González <scott.gonzalez@gmail.com>
Mon, 25 Jul 2011 15:13:54 +0000 (11:13 -0400)
ui/jquery.ui.datepicker.js

index bf42f0411e7ae01aeef30ce607d39d0b8a4db262..aa42c972ea29482fa15ad085f9bfb2ca1811ed22 100644 (file)
@@ -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);
                }
        },