Skip to content

Commit

Permalink
Fix for language files in fullcalendar when minified (no debug)
Browse files Browse the repository at this point in the history
  • Loading branch information
cheesegrits committed Oct 13, 2017
1 parent 220f0ed commit 346a70d
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,13 @@ private function iniJs()
'deps' => array('lib/moment/moment')
);

$shim['viz/fullcalendar/fullcalendar'] = (object) array(
$vizShim = 'viz/fullcalendar/fullcalendar';
if (!FabrikHelperHTML::isDebug())
{
$vizShim .= '-min';
}

$shim[$vizShim] = (object) array(
'deps' => array('fullcalendar', 'jquery')
);

Expand All @@ -255,7 +261,7 @@ private function iniJs()
$shim['lang'] = (object) array('deps' =>
array('lib/moment/moment', 'fullcalendar')
);
$shim['viz/fullcalendar/fullcalendar']->deps[] = 'lang';
$shim[$vizShim]->deps[] = 'lang';
$paths['lang'] = 'plugins/fabrik_visualization/fullcalendar/libs/fullcalendar/locale/' . $lang;
}

Expand Down

0 comments on commit 346a70d

Please sign in to comment.