mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 21:43:33 -07:00
Calendar requests are cleaner.
TvDb Episodes are actually added to the list...
This commit is contained in:
parent
0399b18357
commit
afcbbf54c7
3 changed files with 6 additions and 3 deletions
|
@ -37,10 +37,11 @@ define(['app', 'Calendar/CalendarItemView'], function (app) {
|
|||
getEvents: function(start, end, callback){
|
||||
var bbView = NzbDrone.Calendar.CalendarCollectionView.Instance;
|
||||
|
||||
|
||||
var startDate = Date.create(start).format(Date.ISO8601_DATETIME);
|
||||
var endDate = Date.create(end).format(Date.ISO8601_DATETIME);
|
||||
|
||||
bbView.calendar.fetch({
|
||||
data:{ start: Date.create(start).format(Date.ISO8601_DATETIME), end: Date.create(end).format(Date.ISO8601_DATETIME) },
|
||||
data:{ start: startDate, end: endDate },
|
||||
success:function (calendarCollection) {
|
||||
callback(calendarCollection.toJSON());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue