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

fix dashboard page

This commit is contained in:
Luke Pulverenti 2016-05-06 02:02:10 -04:00
parent 9b355ec012
commit e0dd826c9b

View file

@ -1,4 +1,6 @@
var DashboardPage = { define(['datetime'], function (datetime) {
window.DashboardPage = {
newsStartIndex: 0, newsStartIndex: 0,
@ -142,7 +144,7 @@
itemHtml += '</div>'; itemHtml += '</div>';
itemHtml += '<div secondary>'; itemHtml += '<div secondary>';
var date = parseISO8601Date(item.Date, { toLocal: true }); var date = datetime.parseISO8601Date(item.Date, true);
itemHtml += date.toLocaleDateString(); itemHtml += date.toLocaleDateString();
itemHtml += '</div>'; itemHtml += '</div>';
@ -993,11 +995,11 @@
}); });
}); });
} }
}; };
$(document).on('pageshow', "#dashboardPage", DashboardPage.onPageShow).on('pagebeforehide', "#dashboardPage", DashboardPage.onPageHide); $(document).on('pageshow', "#dashboardPage", DashboardPage.onPageShow).on('pagebeforehide', "#dashboardPage", DashboardPage.onPageHide);
(function ($, document, window) { (function ($, document, window) {
function getEntryHtml(entry) { function getEntryHtml(entry) {
@ -1028,7 +1030,7 @@ $(document).on('pageshow', "#dashboardPage", DashboardPage.onPageShow).on('pageb
html += '</div>'; html += '</div>';
html += '<div secondary>'; html += '<div secondary>';
var date = parseISO8601Date(entry.Date, { toLocal: true }); var date = datetime.parseISO8601Date(entry.Date, true);
html += date.toLocaleDateString() + ' ' + date.toLocaleTimeString().toLowerCase(); html += date.toLocaleDateString() + ' ' + date.toLocaleTimeString().toLowerCase();
html += '</div>'; html += '</div>';
@ -1194,9 +1196,9 @@ $(document).on('pageshow', "#dashboardPage", DashboardPage.onPageShow).on('pageb
return this; return this;
}; };
})(jQuery, document, window); })(jQuery, document, window);
(function ($, document, window) { (function ($, document, window) {
var welcomeDismissValue = '12'; var welcomeDismissValue = '12';
var welcomeTourKey = 'welcomeTour'; var welcomeTourKey = 'welcomeTour';
@ -1293,9 +1295,9 @@ $(document).on('pageshow', "#dashboardPage", DashboardPage.onPageShow).on('pageb
}).on('pageshow', "#dashboardPage", onPageShowCheckTour); }).on('pageshow', "#dashboardPage", onPageShowCheckTour);
})(jQuery, document, window); })(jQuery, document, window);
(function () { (function () {
$(document).on('pageshow', ".type-interior", function () { $(document).on('pageshow', ".type-interior", function () {
@ -1318,4 +1320,6 @@ $(document).on('pageshow', "#dashboardPage", DashboardPage.onPageShow).on('pageb
}); });
})(); })();
});