mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 05:23:31 -07:00
History, Series/Details and Missing use ImageLink when possible for actions.
This commit is contained in:
parent
9264dcdf88
commit
af328c9e55
8 changed files with 9 additions and 112 deletions
|
@ -1,41 +0,0 @@
|
|||
jQuery(document).ready(function () {
|
||||
$.ajaxSetup({
|
||||
cache: false
|
||||
});
|
||||
|
||||
var selector = '#localSeriesLookup';
|
||||
|
||||
$(document).bind('keydown', 'ctrl+shift+f', function () {
|
||||
$(selector).focus();
|
||||
});
|
||||
|
||||
$(document).bind('keyup', 's', function () {
|
||||
$(selector).focus();
|
||||
});
|
||||
|
||||
|
||||
$(selector).each(function (index, element) {
|
||||
$(element).blur(function () {
|
||||
$(element).val("");
|
||||
});
|
||||
|
||||
$(element).watermark('Search...');
|
||||
|
||||
$(element).autocomplete({
|
||||
source: "/Series/LocalSearch",
|
||||
minLength: 1,
|
||||
delay: 200,
|
||||
autoFocus: true,
|
||||
select: function (event, ui) {
|
||||
window.location = "../Series/Details?seriesId=" + ui.item.Id;
|
||||
}
|
||||
})
|
||||
|
||||
.data("autocomplete")._renderItem = function (ul, item) {
|
||||
return $("<li></li>")
|
||||
.data("item.autocomplete", item)
|
||||
.append("<a>" + item.Title + "<br>" + "</a>")
|
||||
.appendTo(ul);
|
||||
};
|
||||
});
|
||||
});
|
|
@ -7,9 +7,6 @@ var downloadingImage = '../../Content/Images/Downloading.png';
|
|||
var seriesId = 0;
|
||||
var saveSeasonIgnoreUrl = '../Series/SaveSeasonIgnore';
|
||||
var saveEpisodeIgnoreUrl = '../Series/SaveEpisodeIgnore';
|
||||
var renameEpisodeUrl = '../Episode/Rename';
|
||||
var renameSeasonUrl = '../Episode/RenameSeason';
|
||||
var searchSeasonUrl = '../Episode/SearchSeason';
|
||||
|
||||
//Episode Ignore Functions
|
||||
$(".ignoreEpisode").live("click", function () {
|
||||
|
@ -158,41 +155,6 @@ function saveEpisodeIgnore(episodeId, ignored) {
|
|||
});
|
||||
}
|
||||
|
||||
//Episode Renaming
|
||||
function renameEpisode(id) {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: renameEpisodeUrl,
|
||||
data: jQuery.param({ episodeFileId: id }),
|
||||
error: function (req, status, error) {
|
||||
alert("Sorry! We could rename " + id + " at this time. " + error);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function renameSeason(seriesId, seasonNumber) {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: renameSeasonUrl,
|
||||
data: jQuery.param({ seriesId: seriesId, seasonNumber: seasonNumber }),
|
||||
error: function (req, status, error) {
|
||||
alert("Sorry! We could rename series: " + seriesId + " season: " + seasonNumber + " at this time. " + error);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
//Season Search
|
||||
function searchSeason(seriesId, seasonNumber) {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: searchSeasonUrl,
|
||||
data: jQuery.param({ seriesId: seriesId, seasonNumber: seasonNumber }),
|
||||
error: function (req, status, error) {
|
||||
alert("Sorry! We could search for series: " + seriesId + " season: " + seasonNumber + " at this time. " + error);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
//Set master status to match children
|
||||
function setMasterStatus(grid) {
|
||||
//Get children of this grid
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue