Moved episodeSearch to it's own javascript file.

This commit is contained in:
Mark McDowall 2011-06-01 16:50:36 -07:00
commit 9ee74d68eb
4 changed files with 16 additions and 14 deletions

View 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);
}
});
}