mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
updated json serilizer to return defaults
use enum text instead of number
This commit is contained in:
@@ -11,12 +11,22 @@ define(['app', 'AddSeries/RootFolders/RootFolderCollection', 'AddSeries/New/Sear
|
||||
regions: {
|
||||
searchResult: '#search-result'
|
||||
},
|
||||
collection: new NzbDrone.Series.SeriesCollection(),
|
||||
|
||||
initialize: function () {
|
||||
|
||||
this.collection = new NzbDrone.Series.SeriesCollection();
|
||||
|
||||
this.collection.parse = function (response) {
|
||||
_.each(response, function (model) {
|
||||
model.id = null;
|
||||
});
|
||||
|
||||
return response;
|
||||
};
|
||||
|
||||
NzbDrone.AddSeries.New.AddNewSeriesContext = this;
|
||||
|
||||
NzbDrone.vent.on(NzbDrone.Events.SeriesAdded, function (options){
|
||||
NzbDrone.vent.on(NzbDrone.Events.SeriesAdded, function (options) {
|
||||
if (!options.existing) {
|
||||
NzbDrone.AddSeries.New.AddNewSeriesContext.ui.seriesSearch.val('');
|
||||
|
||||
|
Reference in New Issue
Block a user