Skip to content

Commit

Permalink
Tweak to maintain consistency with documentation for not displaying t…
Browse files Browse the repository at this point in the history
…ime in fullcalendar labels
  • Loading branch information
cheesegrits committed Oct 24, 2017
1 parent c6c2ed5 commit 899390f
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,12 @@ private function jsOptions()
$options->default_view = $params->get('fullcalendar_default_view', 'month');
$options->add_type = $params->get('add_type', 'both');
$options->time_format = $params->get('time_format', 'H(:mm)');

if ($options->time_format === '()')
{
$options->time_format = ' ';
}

$options->first_week_day = (int) $params->get('first_week_day', 0);
$options->minDuration = $params->get('minimum_duration', "00:30:00");
$options->open = $params->get('open-hour', "00:00:00");
Expand All @@ -180,7 +186,6 @@ private function jsOptions()
$options->showweekends = (bool) $params->get('show-weekends', true);
$options->greyscaledweekend = (bool) $params->get('greyscaled-weekend', false);
$options->readonly = (bool) $params->get('calendar-read-only', false);
$options->timeFormat = $params->get('time_format', '%X');
$options->readonlyMonth = (bool) $params->get('readonly_monthview', false);
$options->j3 = FabrikWorker::j3();
$options->calOptions = $params->get('calOptions', '{}');
Expand Down

0 comments on commit 899390f

Please sign in to comment.