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 @@ -705,7 +705,7 @@ $.extend(Datepicker.prototype, {
705
705
var origyearshtml = inst . yearshtml ;
706
706
setTimeout ( function ( ) {
707
707
//assure that inst.yearshtml didn't change.
708
- if ( origyearshtml === inst . yearshtml ) {
708
+ if ( origyearshtml === inst . yearshtml && inst . yearshtml ) {
709
709
inst . dpDiv . find ( 'select.ui-datepicker-year:first' ) . replaceWith ( inst . yearshtml ) ;
710
710
}
711
711
origyearshtml = inst . yearshtml = null ;
@@ -1602,14 +1602,9 @@ $.extend(Datepicker.prototype, {
1602
1602
'>' + year + '</option>' ;
1603
1603
}
1604
1604
inst . yearshtml += '</select>' ;
1605
- //when showing there is no need for later update
1606
- if ( ! $ . browser . mozilla ) {
1607
- html += inst . yearshtml ;
1608
- inst . yearshtml = null ;
1609
- } else {
1610
- // will be replaced later with inst.yearshtml
1611
- html += '<select class="ui-datepicker-year"><option value="' + drawYear + '" selected="selected">' + drawYear + '</option></select>' ;
1612
- }
1605
+
1606
+ html += inst . yearshtml ;
1607
+ inst . yearshtml = null ;
1613
1608
}
1614
1609
}
1615
1610
html += this . _get ( inst , 'yearSuffix' ) ;
You can’t perform that action at this time.
0 commit comments