mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 21:43:33 -07:00
Moved episodeSearch to it's own javascript file.
This commit is contained in:
parent
0284f54e08
commit
9ee74d68eb
4 changed files with 16 additions and 14 deletions
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);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue