File tree Expand file tree Collapse file tree 1 file changed +4
-9
lines changed Expand file tree Collapse file tree 1 file changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -707,7 +707,7 @@ $.extend(Datepicker.prototype, {
707
707
var origyearshtml = inst . yearshtml ;
708
708
setTimeout ( function ( ) {
709
709
//assure that inst.yearshtml didn't change.
710
- if ( origyearshtml === inst . yearshtml ) {
710
+ if ( origyearshtml === inst . yearshtml && inst . yearshtml ) {
711
711
inst . dpDiv . find ( 'select.ui-datepicker-year:first' ) . replaceWith ( inst . yearshtml ) ;
712
712
}
713
713
origyearshtml = inst . yearshtml = null ;
@@ -1606,14 +1606,9 @@ $.extend(Datepicker.prototype, {
1606
1606
'>' + year + '</option>' ;
1607
1607
}
1608
1608
inst . yearshtml += '</select>' ;
1609
- //when showing there is no need for later update
1610
- if ( ! $ . browser . mozilla ) {
1611
- html += inst . yearshtml ;
1612
- inst . yearshtml = null ;
1613
- } else {
1614
- // will be replaced later with inst.yearshtml
1615
- html += '<select class="ui-datepicker-year"><option value="' + drawYear + '" selected="selected">' + drawYear + '</option></select>' ;
1616
- }
1609
+
1610
+ html += inst . yearshtml ;
1611
+ inst . yearshtml = null ;
1617
1612
}
1618
1613
}
1619
1614
html += this . _get ( inst , 'yearSuffix' ) ;
You can’t perform that action at this time.
0 commit comments