Fix progress bars disappearing off homepage

This commit is contained in:
Supremicus 2015-01-12 22:26:41 +10:00
parent a96afe1ceb
commit b1234286ae
2 changed files with 7 additions and 6 deletions

View file

@ -33,6 +33,7 @@
* Add text "[paused]" where appropriate to shows on layout Day by Day on Episodes page
* Change Epsiodes page auto refresh from 10 to 30 mins
* Add UI tweaks
* Fix progress bars disappearing on home page
### 0.5.0 (2014-12-21 11:40:00 UTC)

View file

@ -366,13 +366,13 @@ $myShowList.sort(lambda x, y: cmp(x.name, y.name))
if (classvalue<20) {
classtoadd = "progress-20"
}
if (classvalue>20 && classvalue<60) {
if (classvalue>=20 && classvalue<60) {
classtoadd = "progress-40"
}
if (classvalue>40 && classvalue<80) {
if (classvalue>=40 && classvalue<80) {
classtoadd = "progress-60"
}
if (classvalue>80) {
if (classvalue>=80) {
classtoadd = "progress-80"
}
\$("\#progressbar$curShow.indexerid > .ui-progressbar-value").addClass(classtoadd);
@ -596,13 +596,13 @@ $myShowList.sort(lambda x, y: cmp(x.name, y.name))
if (classvalue<20) {
classtoadd = "progress-20"
}
if (classvalue>20 && classvalue<60) {
if (classvalue>=20 && classvalue<60) {
classtoadd = "progress-40"
}
if (classvalue>40 && classvalue<80) {
if (classvalue>=40 && classvalue<80) {
classtoadd = "progress-60"
}
if (classvalue>80) {
if (classvalue>=80) {
classtoadd = "progress-80"
}
\$("\#progressbar$curShow.indexerid > .ui-progressbar-value").addClass(classtoadd);