mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
adjust date display for upcoming
This commit is contained in:
parent
219919f948
commit
ef106f264a
2 changed files with 2 additions and 26 deletions
|
@ -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) {
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
<label for="selectImageSavingConvention"><b>Image saving convention:</b></label>
|
||||
<select name="selectImageSavingConvention" id="selectImageSavingConvention">
|
||||
<option value="Compatible">Compatible - MB3/Plex/Xbmc</option>
|
||||
<option value="Legacy">Standard - MB3/MB2</option>
|
||||
<option value="Legacy" selected="selected">Standard - MB3/MB2</option>
|
||||
</select>
|
||||
<div class="fieldDescription">Media Browser recognizes images from most major media applications. Choosing your downloading convention is useful if you also use other products.</div>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue