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

updated mobile and tablet layouts in web client

This commit is contained in:
Luke Pulverenti 2013-12-30 22:43:30 -05:00
parent 722c5a92f3
commit 2861ff68c9
11 changed files with 58 additions and 52 deletions

View file

@ -34,7 +34,7 @@ $.fn.checked = function (value) {
$.fn.buttonEnabled = function(enabled) {
return this;
return enabled ? this.attr('disabled', '').removeAttr('disabled') : this.attr('disabled', 'disabled');
};
if (!Array.prototype.filter) {

View file

@ -1108,18 +1108,15 @@
getPlayedIndicatorHtml: function (item) {
if (item.Type == "Series" || item.Type == "Season" || item.Type == "BoxSet") {
if (item.Type == "Series" || item.Type == "Season" || item.Type == "BoxSet" || item.MediaType == "Video") {
if (item.RecursiveUnplayedItemCount) {
return '<div class="unplayedIndicator">' + item.RecursiveUnplayedItemCount + '</div>';
}
}
if (item.PlayedPercentage == 100) {
return '<div class="unplayedIndicator"><div class="ui-icon-check ui-btn-icon-notext"></div></div>';
}
if (item.MediaType == "Video") {
if (item.PlayedPercentage == 100) {
return '<div class="unplayedIndicator"><div class="ui-icon-check ui-btn-icon-notext"></div></div>';
}
var userData = item.UserData || {};
if (userData.Played) {

View file

@ -20,7 +20,9 @@
items: result.Items,
useAverageAspectRatio: true,
showUnplayedIndicator: false,
shape: "square"
shape: "square",
showTitle: true,
showParentTitle: true
}));
});

View file

@ -117,7 +117,6 @@ var Dashboard = {
showError: function (message) {
$.mobile.loading('show', {
theme: "e",
text: message,
textonly: true,
textVisible: true
@ -135,7 +134,6 @@ var Dashboard = {
var message = options;
$.mobile.loading('show', {
theme: "b",
text: message,
textonly: true,
textVisible: true