mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-21 05:53:33 -07:00
Signalr working with Font-Awesome
This commit is contained in:
parent
e459c0ff37
commit
3ce8ffe21f
2 changed files with 41 additions and 28 deletions
|
@ -54,32 +54,48 @@
|
|||
});
|
||||
});
|
||||
|
||||
$('[data-status]').livequery(function () {
|
||||
var status = $(this).attr('data-status');
|
||||
|
||||
$('[data-status="Downloading"]').livequery(function () {
|
||||
$(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');
|
||||
}
|
||||
$(this).addClass('icon-download-alt');
|
||||
});
|
||||
|
||||
$('[data-status="Ready"]').livequery(function() {
|
||||
$(this).removeClass(function (index, css) {
|
||||
return (css.match(/\bicon-\S+/g) || []).join(' ');
|
||||
});
|
||||
|
||||
$(this).addClass('icon-play');
|
||||
|
||||
});
|
||||
|
||||
$('[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 () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue