1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

consolidate datetime methods

This commit is contained in:
Luke Pulverenti 2016-05-05 23:09:36 -04:00
parent 8225003fd5
commit 7b625ade86
9 changed files with 231 additions and 278 deletions

View file

@ -1,4 +1,4 @@
define(['layoutManager', 'jQuery', 'scrollStyles'], function (layoutManager, $) {
define(['layoutManager', 'datetime', 'jQuery', 'scrollStyles'], function (layoutManager, datetime, $) {
var currentItem;
@ -341,7 +341,7 @@
});
var itemsContainer = section.querySelector('.nextUpItems');
itemsContainer.innerHTML = html;
ImageLoader.lazyChildren(itemsContainer);
$(itemsContainer).createCardMenus();
@ -1402,7 +1402,7 @@
html += '<div class="cardFooter">';
html += '<div class="cardText">' + chapterName + '</div>';
html += '<div class="cardText">';
html += Dashboard.getDisplayTime(chapter.StartPositionTicks);
html += datetime.getDisplayRunningTime(chapter.StartPositionTicks);
html += '</div>';
//cardFooter
@ -1639,7 +1639,7 @@
html += '<div class="cardText">' + item.Name + '</div>';
html += '<div class="cardText">';
if (item.RunTimeTicks != "") {
html += Dashboard.getDisplayTime(item.RunTimeTicks);
html += datetime.getDisplayRunningTime(item.RunTimeTicks);
}
else {
html += "&nbsp;";