diff --git a/dashboard-ui/gamesystem.html b/dashboard-ui/gamesystem.html deleted file mode 100644 index 0b5b9086cf..0000000000 --- a/dashboard-ui/gamesystem.html +++ /dev/null @@ -1,45 +0,0 @@ - - - - - - -
-

- Games

-
- - - -
-
-
-
-
-
- -
- -

-

-

-

-

-

- -

-

- -
-
- -
-
- - diff --git a/dashboard-ui/scripts/gamesystempage.js b/dashboard-ui/scripts/gamesystempage.js deleted file mode 100644 index 314f256546..0000000000 --- a/dashboard-ui/scripts/gamesystempage.js +++ /dev/null @@ -1,53 +0,0 @@ - -(function ($, document, LibraryBrowser) { - - function reload(page) { - - var id = getParameterByName('id'); - - Dashboard.showLoadingMsg(); - - ApiClient.getItem(Dashboard.getCurrentUserId(), id).done(function (item) { - - var name = item.Name; - - $('#itemImage', page).html(LibraryBrowser.getDetailImageHtml(item)); - - Dashboard.setPageTitle(name); - - $('#itemName', page).html(name); - - renderDetails(page, item); - - Dashboard.hideLoadingMsg(); - }); - } - - function renderDetails(page, item) { - - LibraryBrowser.renderOverview($('#itemOverview', page), item); - - if (item.CommunityRating) { - $('#itemCommunityRating', page).html(LibraryBrowser.getStarRatingHtml(item)).show().attr('title', item.CommunityRating); - } else { - $('#itemCommunityRating', page).hide(); - } - - $('#itemMiscInfo', page).html(LibraryBrowser.getMiscInfoHtml(item)); - - LibraryBrowser.renderGenres($('#itemGenres', page), item, "games"); - LibraryBrowser.renderStudios($('#itemStudios', page), item, "games"); - renderUserDataIcons(page, item); - LibraryBrowser.renderLinks($('#itemLinks', page), item); - } - - function renderUserDataIcons(page, item) { - $('#itemRatings', page).html(LibraryBrowser.getUserDataIconsHtml(item)); - } - - $(document).on('pageshow', "#gamesystemPage", function () { - reload(this); - }); - - -})(jQuery, document, LibraryBrowser); \ No newline at end of file diff --git a/dashboard-ui/scripts/librarybrowser.js b/dashboard-ui/scripts/librarybrowser.js index 443246d325..afbb0c7131 100644 --- a/dashboard-ui/scripts/librarybrowser.js +++ b/dashboard-ui/scripts/librarybrowser.js @@ -305,6 +305,9 @@ if (item.Type == "MusicAlbum") { return "itemdetails.html?id=" + id; } + if (item.Type == "GamePlatform") { + return "itemdetails.html?id=" + id; + } if (item.Type == "Genre") { return "itembynamedetails.html?genre=" + encodeName(item.Name) + "&context=" + itemByNameContext; } @@ -317,9 +320,6 @@ if (item.Type == "Artist") { return "itembynamedetails.html?artist=" + encodeName(item.Name) + "&context=" + (itemByNameContext || "music"); } - if (item.Type == "GamePlatform") { - return "gamesystem.html?id=" + id; - } return item.IsFolder ? (id ? "itemList.html?parentId=" + id : "#") : "itemdetails.html?id=" + id;