From b1234286ae19ba1a655c4e5176fd80f6daffc3ea Mon Sep 17 00:00:00 2001 From: Supremicus Date: Mon, 12 Jan 2015 22:26:41 +1000 Subject: [PATCH] Fix progress bars disappearing off homepage --- CHANGES.md | 1 + gui/slick/interfaces/default/home.tmpl | 12 ++++++------ 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 9f337cb2..84d4a63b 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -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) diff --git a/gui/slick/interfaces/default/home.tmpl b/gui/slick/interfaces/default/home.tmpl index 41ec20cc..f1cf254b 100644 --- a/gui/slick/interfaces/default/home.tmpl +++ b/gui/slick/interfaces/default/home.tmpl @@ -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);