mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-19 21:44:30 -04:00
add series lookup doesn't send a request to server with a blank filter.
This commit is contained in:
@@ -58,7 +58,14 @@ NzbDrone.AddSeries.AddNewSeriesView = Backbone.Marionette.Layout.extend({
|
||||
search: function (context) {
|
||||
|
||||
var term = context.ui.seriesSearch.val();
|
||||
console.log(term);
|
||||
context.collection.fetch({ data: $.param({ term: term }) });
|
||||
|
||||
if (term == "") {
|
||||
context.collection.reset();
|
||||
} else {
|
||||
console.log(term);
|
||||
context.collection.fetch({ data: $.param({ term: term }) });
|
||||
}
|
||||
|
||||
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user