Font-Awesomed Series/Details

New: Replaced icons with Font-Awesome SVG icons
This commit is contained in:
Mark McDowall 2012-10-10 19:02:17 -07:00
commit f643c5e3fb
9 changed files with 77 additions and 34 deletions

View file

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