Skip to content

Commit

Permalink
Hopefully solve the IE crash issue (again)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonleighton committed Mar 15, 2009
1 parent abe213a commit f91c1cf
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions jquery.date_input.js
Expand Up @@ -19,12 +19,14 @@ DateInput.DEFAULT_OPTS = {
};
DateInput.prototype = {
build: function() {
this.monthNameSpan = $('<span class="month_name"></span>');
var monthNav = $('<p class="month_nav"></p>').append(
$('<a href="#" class="prev">&laquo;</a> ').click(this.prevMonth),
this.monthNameSpan,
$(' <a href="#" class="next">&raquo;</a>').click(this.nextMonth)
);
var monthNav = $('<p class="month_nav">' +
'<a href="#" class="prev">&laquo;</a>' +
' <span class="month_name"></span> ' +
'<a href="#" class="next">&raquo;</a>' +
'</p>');
this.monthNameSpan = $(".month_name", monthNav);
$(".prev", monthNav).click(this.prevMonth);
$(".next", monthNav).click(this.nextMonth);

var tableShell = "<table><thead><tr>";
$(this.adjustDays(this.short_day_names)).each(function() {
Expand Down

0 comments on commit f91c1cf

Please sign in to comment.