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:
parent
722c5a92f3
commit
2861ff68c9
11 changed files with 58 additions and 52 deletions
|
@ -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) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -20,7 +20,9 @@
|
|||
items: result.Items,
|
||||
useAverageAspectRatio: true,
|
||||
showUnplayedIndicator: false,
|
||||
shape: "square"
|
||||
shape: "square",
|
||||
showTitle: true,
|
||||
showParentTitle: true
|
||||
}));
|
||||
|
||||
});
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue