4
0
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:
Buster Neece 2019-05-14 13:35:40 -05:00
parent 12e00b5271
commit fb57959765
No known key found for this signature in database
GPG Key ID: 6D9E12FF03411F4E
2 changed files with 1 additions and 4 deletions

View File

@ -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' => [

View File

@ -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()]),