Skip to content

Commit

Permalink
Avoid a js error that breaks further calendar stuff working if recur_…
Browse files Browse the repository at this point in the history
…end doesn't have a date
  • Loading branch information
Chuck Hagenbuch committed Mar 3, 2014
1 parent d32d19d commit 27a9e22
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion nag/js/calendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,10 @@ var NagCalendar =

updateWday: function(p)
{
$(p + '_wday').update('(' + Horde_Calendar.fullweekdays[this.getFormDate(p).getDay()] + ')');
var d = this.getFormDate(p);
if (d) {
$(p + '_wday').update('(' + Horde_Calendar.fullweekdays[d.getDay()] + ')');
}
},

getFormDate: function(p)
Expand Down

0 comments on commit 27a9e22

Please sign in to comment.