mirror of
https://github.com/AzuraCast/AzuraCast.git
synced 2024-06-14 13:16:37 +00:00
Prevent once-per-day playlists from showing up as "all-day".
This commit is contained in:
parent
12e00b5271
commit
fb57959765
|
@ -254,7 +254,7 @@ return [
|
|||
}
|
||||
|
||||
$locale = str_replace('_', '-', explode('.', $request->getAttribute('locale'))[0]);
|
||||
return '$(function() { moment.locale('.json_encode($locale).'); });';
|
||||
return 'moment.locale('.json_encode($locale).');';
|
||||
},
|
||||
],
|
||||
],
|
||||
|
@ -368,11 +368,9 @@ return [
|
|||
'js' => [
|
||||
[
|
||||
'src' => 'dist/lib/fullcalendar/fullcalendar.min.js',
|
||||
'defer' => true,
|
||||
],
|
||||
[
|
||||
'src' => 'dist/lib/fullcalendar/locale-all.js',
|
||||
'defer' => true,
|
||||
],
|
||||
],
|
||||
'css' => [
|
||||
|
|
|
@ -144,7 +144,6 @@ class PlaylistsController extends AbstractStationCrudController
|
|||
$events[] = [
|
||||
'id' => $playlist->getId(),
|
||||
'title' => $playlist->getName(),
|
||||
'allDay' => $playlist_start->eq($playlist_end),
|
||||
'start' => $playlist_start->toIso8601String(),
|
||||
'end' => $playlist_end->toIso8601String(),
|
||||
'url' => (string)$request->getRouter()->named('stations:playlists:edit', ['station' => $station_id, 'id' => $playlist->getId()]),
|
||||
|
|
Loading…
Reference in New Issue
Block a user