mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-30 15:37:55 +02:00
Moved episodeSearch to it's own javascript file.
This commit is contained in:
13
NzbDrone.Web/Scripts/episodeSearch.js
Normal file
13
NzbDrone.Web/Scripts/episodeSearch.js
Normal file
@@ -0,0 +1,13 @@
|
||||
var searchUrl = '../Episode/Search';
|
||||
|
||||
function searchForEpisode(id) {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: searchUrl,
|
||||
data: jQuery.param({ episodeId: id }),
|
||||
error: function (req, status, error) {
|
||||
alert("Sorry! We could search for " + id + " at this time. " + error);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user