diff --git a/dashboard-ui/index.html b/dashboard-ui/index.html index 714d59ff3..6239a5471 100644 --- a/dashboard-ui/index.html +++ b/dashboard-ui/index.html @@ -6,7 +6,7 @@
diff --git a/dashboard-ui/itemdetails.html b/dashboard-ui/itemdetails.html index 8e32c04dc..5d459d42f 100644 --- a/dashboard-ui/itemdetails.html +++ b/dashboard-ui/itemdetails.html @@ -24,6 +24,8 @@+
@@ -35,8 +37,6 @@-
-
';
+ html += '
';
} else {
- html += '
';
+ html += '
';
}
$('#itemRatings', page).html(html);
diff --git a/dashboard-ui/scripts/indexpage.js b/dashboard-ui/scripts/indexpage.js
index 8dff90f64..f2c39ce04 100644
--- a/dashboard-ui/scripts/indexpage.js
+++ b/dashboard-ui/scripts/indexpage.js
@@ -70,37 +70,6 @@
}));
});
-
- IndexPage.loadMyLibrary(userId, page);
- },
-
- loadMyLibrary: function (userId, page) {
-
- var items = [{
- Name: "Recently Played",
- IsFolder: true
- }, {
- Name: "Favorites",
- IsFolder: true,
- url: "itemlist.html?IsFavorite=true&Recursive=true&Title=Favorites"
- }, {
- Name: "Genres",
- IsFolder: true
- }, {
- Name: "Studios",
- IsFolder: true
- }, {
- Name: "Performers",
- IsFolder: true
- }, {
- Name: "Directors",
- IsFolder: true
- }];
-
- $('#divMyLibrary', page).html(Dashboard.getPosterViewHtml({
- items: items,
- showTitle: true
- }));
}
};
diff --git a/dashboard-ui/scripts/itemlistpage.js b/dashboard-ui/scripts/itemlistpage.js
index 7be0b5ead..4d6d4e257 100644
--- a/dashboard-ui/scripts/itemlistpage.js
+++ b/dashboard-ui/scripts/itemlistpage.js
@@ -13,7 +13,6 @@
var query = {
Fields: "PrimaryImageAspectRatio",
- SortBy: "SortName",
Recursive: getParameterByName('Recursive') == 'true'
};
@@ -34,7 +33,19 @@
$('#chkRecentlyAdded', page).checked(true).checkboxradio("refresh");
}
+ var sortBy = getParameterByName('SortBy') || 'SortName';
+ query.SortBy = sortBy;
+ $('.radioSortBy', page).checked(false).checkboxradio("refresh");
+ $('#radio' + sortBy, page).checked(true).checkboxradio("refresh");
+
+ var order = getParameterByName('SortOrder') || 'Ascending';
+
+ query.SortOrder = order;
+ $('.radioSortOrder', page).checked(false).checkboxradio("refresh");
+ $('#radio' + order, page).checked(true).checkboxradio("refresh");
+
query.Filters = filters.join(',');
+ //query.limit = 100;
if (parentId) {
query.parentId = parentId;
@@ -112,8 +123,6 @@
query.Filters = filters;
- query.Recursive = filters.length ? true : false;
-
ItemListPage.refreshItems(query);
},