Grid colouring for ignored and missing.

This commit is contained in:
Mark McDowall 2012-01-29 22:14:46 -08:00
commit a83dbbb16f
5 changed files with 46 additions and 1 deletions

View file

@ -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;
}
}