mirror of
https://github.com/Radarr/Radarr.git
synced 2026-04-18 21:35:51 -04:00
Font-Awesomed Series/Details
New: Replaced icons with Font-Awesome SVG icons
This commit is contained in:
@@ -53,4 +53,32 @@
|
||||
dateFormat: "yy-mm-dd"
|
||||
});
|
||||
});
|
||||
|
||||
$('[data-status]').livequery(function () {
|
||||
var status = $(this).attr('data-status');
|
||||
|
||||
$(this).removeClass(function (index, css) {
|
||||
return (css.match(/\bicon-\S+/g) || []).join(' ');
|
||||
});
|
||||
|
||||
if (status == 'Downloading') {
|
||||
$(this).addClass('icon-download-alt');
|
||||
}
|
||||
|
||||
if (status == 'Ready') {
|
||||
$(this).addClass('icon-play');
|
||||
}
|
||||
|
||||
if (status == 'AirsToday') {
|
||||
$(this).addClass('icon-time');
|
||||
}
|
||||
|
||||
if (status == 'NotAired') {
|
||||
$(this).addClass('icon-calendar');
|
||||
}
|
||||
|
||||
if (status == 'Missing') {
|
||||
$(this).addClass('icon-sign-blank');
|
||||
}
|
||||
});
|
||||
});
|
||||
@@ -1,10 +1,4 @@
|
||||
var notIgnoredImage = '../../Content/Images/notIgnored.png';
|
||||
var ignoredImage = '../../Content/Images/ignored.png';
|
||||
var notAiredImage = '../../Content/Images/NotAired.png';
|
||||
var readyImage = '../../Content/Images/Ready.png';
|
||||
var downloadingImage = '../../Content/Images/Downloading.png';
|
||||
|
||||
var seriesId = 0;
|
||||
var seriesId = 0;
|
||||
var saveSeasonIgnoreUrl = '../Command/SaveSeasonIgnore';
|
||||
var saveEpisodeIgnoreUrl = '../Command/SaveEpisodeIgnore';
|
||||
|
||||
@@ -20,13 +14,11 @@ $(".ignoreEpisode").live("click", function () {
|
||||
|
||||
if (ignored) {
|
||||
toggle.removeClass('ignored');
|
||||
toggle.attr('src', notIgnoredImage);
|
||||
toggleCellColour(toggle, false);
|
||||
}
|
||||
|
||||
else {
|
||||
toggle.addClass('ignored');
|
||||
toggle.attr('src', ignoredImage);
|
||||
toggleCellColour(toggle, true);
|
||||
}
|
||||
|
||||
@@ -51,12 +43,11 @@ $(".ignoreEpisode").live("click", function () {
|
||||
});
|
||||
|
||||
function toggleChildren(seasonNumber, ignored) {
|
||||
var ignoreEpisodes = $('[data-season="' + seasonNumber + '"]');
|
||||
var ignoreEpisodes = $('[data-season="' + seasonNumber + '"]:not(table)');
|
||||
|
||||
if (ignored) {
|
||||
ignoreEpisodes.each(function (index) {
|
||||
$(this).addClass('ignored');
|
||||
$(this).attr('src', ignoredImage);
|
||||
toggleCellColour($(this), true);
|
||||
});
|
||||
}
|
||||
@@ -64,7 +55,6 @@ function toggleChildren(seasonNumber, ignored) {
|
||||
else {
|
||||
ignoreEpisodes.each(function (index) {
|
||||
$(this).removeClass('ignored');
|
||||
$(this).attr('src', notIgnoredImage);
|
||||
|
||||
toggleCellColour($(this), false);
|
||||
});
|
||||
@@ -78,14 +68,12 @@ function toggleMasters(seasonNumber, ignored) {
|
||||
if (ignored) {
|
||||
masters.each(function (index) {
|
||||
$(this).addClass('ignored');
|
||||
$(this).attr('src', ignoredImage);
|
||||
});
|
||||
}
|
||||
|
||||
else {
|
||||
masters.each(function (index) {
|
||||
$(this).removeClass('ignored');
|
||||
$(this).attr('src', notIgnoredImage);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user