Skip to content

Commit

Permalink
Avoid js error if date field is empty.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed Jul 20, 2016
1 parent bf34355 commit 30bca6f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions kronolith/js/kronolith.js
Expand Up @@ -6800,6 +6800,10 @@ KronolithCore = {

fbStartDateOnChange: function()
{
if (!$F('kronolithEventStartDate')) {
this._checkDate($('kronolithEventStartDate'));
return;
}
this.fbStartDateHandler(Date.parseExact($F('kronolithEventStartDate'), Kronolith.conf.date_format));
},

Expand Down

0 comments on commit 30bca6f

Please sign in to comment.