From ef106f264a6be45899fc8380361091826f714705 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Mon, 28 Oct 2013 08:26:21 -0400 Subject: [PATCH] adjust date display for upcoming --- dashboard-ui/scripts/librarybrowser.js | 26 +------------------------- dashboard-ui/wizardsettings.html | 2 +- 2 files changed, 2 insertions(+), 26 deletions(-) diff --git a/dashboard-ui/scripts/librarybrowser.js b/dashboard-ui/scripts/librarybrowser.js index 00249dd32f..b8cb5ff046 100644 --- a/dashboard-ui/scripts/librarybrowser.js +++ b/dashboard-ui/scripts/librarybrowser.js @@ -941,31 +941,7 @@ return "Today"; } - var prefix = ''; - - currentDate.setDate(currentDate.getDate() + 1); - if (LibraryBrowser.isSameDay(date, currentDate)) { - prefix = "Tomorrow - "; - } - - var todayDayOfWeek = new Date().getDay(); - currentDate.setDate(currentDate.getDate() + 1); - - while (currentDate.getDay() > todayDayOfWeek) { - - currentDate.setDate(currentDate.getDate() + 1); - - if (LibraryBrowser.isSameDay(date, currentDate)) { - - return weekday[currentDate.getDay()]; - } - } - - if (includeDayNamesInFuture) { - return prefix + weekday[date.getDay()] + " " + date.toLocaleDateString(); - } - - return prefix + date.toLocaleDateString(); + return weekday[date.getDay()] + " " + date.toLocaleDateString(); }, getPremiereDateText: function (item, date) { diff --git a/dashboard-ui/wizardsettings.html b/dashboard-ui/wizardsettings.html index a57029f614..08687a985b 100644 --- a/dashboard-ui/wizardsettings.html +++ b/dashboard-ui/wizardsettings.html @@ -23,7 +23,7 @@
Media Browser recognizes images from most major media applications. Choosing your downloading convention is useful if you also use other products.