|
|
@ -54,32 +54,48 @@
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
$('[data-status]').livequery(function () {
|
|
|
|
$('[data-status="Downloading"]').livequery(function () {
|
|
|
|
var status = $(this).attr('data-status');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$(this).removeClass(function (index, css) {
|
|
|
|
$(this).removeClass(function (index, css) {
|
|
|
|
return (css.match(/\bicon-\S+/g) || []).join(' ');
|
|
|
|
return (css.match(/\bicon-\S+/g) || []).join(' ');
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
if (status == 'Downloading') {
|
|
|
|
$(this).addClass('icon-download-alt');
|
|
|
|
$(this).addClass('icon-download-alt');
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$('[data-status="Ready"]').livequery(function() {
|
|
|
|
if (status == 'Ready') {
|
|
|
|
$(this).removeClass(function (index, css) {
|
|
|
|
$(this).addClass('icon-play');
|
|
|
|
return (css.match(/\bicon-\S+/g) || []).join(' ');
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
if (status == 'AirsToday') {
|
|
|
|
$(this).addClass('icon-play');
|
|
|
|
$(this).addClass('icon-time');
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (status == 'NotAired') {
|
|
|
|
});
|
|
|
|
$(this).addClass('icon-calendar');
|
|
|
|
|
|
|
|
}
|
|
|
|
$('[data-status="AirsToday"]').livequery(function () {
|
|
|
|
|
|
|
|
$(this).removeClass(function (index, css) {
|
|
|
|
|
|
|
|
return (css.match(/\bicon-\S+/g) || []).join(' ');
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$(this).addClass('icon-time');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$('[data-status="NotAired"]').livequery(function () {
|
|
|
|
|
|
|
|
$(this).removeClass(function (index, css) {
|
|
|
|
|
|
|
|
return (css.match(/\bicon-\S+/g) || []).join(' ');
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$(this).addClass('icon-calendar');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$('[data-status="Missing"]').livequery(function () {
|
|
|
|
|
|
|
|
$(this).removeClass(function (index, css) {
|
|
|
|
|
|
|
|
return (css.match(/\bicon-\S+/g) || []).join(' ');
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$(this).addClass('icon-sign-blank');
|
|
|
|
|
|
|
|
|
|
|
|
if (status == 'Missing') {
|
|
|
|
|
|
|
|
$(this).addClass('icon-sign-blank');
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
$('.infoBox, .successBox, .warningBox, .errorBox, .validationBox').livequery(function () {
|
|
|
|
$('.infoBox, .successBox, .warningBox, .errorBox, .validationBox').livequery(function () {
|
|
|
|