mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-28 13:01:28 +02:00
Grid colouring for ignored and missing.
This commit is contained in:
@@ -1,4 +1,23 @@
|
||||
function grid_onError(e) {
|
||||
//Suppress the alert
|
||||
e.preventDefault();
|
||||
}
|
||||
|
||||
//Highlight rows based on a number of details
|
||||
function highlightRow(e) {
|
||||
var row = e.row;
|
||||
var dataItem = e.dataItem;
|
||||
|
||||
var ignored = dataItem.Ignored;
|
||||
var status = dataItem.Status;
|
||||
|
||||
if (ignored) {
|
||||
$(row).addClass('episodeIgnored');
|
||||
return;
|
||||
}
|
||||
|
||||
if (status == "Missing") {
|
||||
$(row).addClass('episodeMissing');
|
||||
return;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user