mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-31 04:00:18 -07:00
updated json serilizer to return defaults
use enum text instead of number
This commit is contained in:
parent
a6aba16902
commit
40f384968a
7 changed files with 31 additions and 34 deletions
|
@ -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('');
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue