mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
consolidate ibn api a bit
This commit is contained in:
parent
520d8fd97b
commit
793dd69b63
7 changed files with 34 additions and 283 deletions
|
@ -62,7 +62,7 @@
|
||||||
item.Type != "GameGenre" &&
|
item.Type != "GameGenre" &&
|
||||||
item.Type != "Person" &&
|
item.Type != "Person" &&
|
||||||
item.Type != "MusicArtist" &&
|
item.Type != "MusicArtist" &&
|
||||||
item.Type != "UserRootFolder") {
|
item.Type != "CollectionFolder") {
|
||||||
$('#fldDelete', page).show();
|
$('#fldDelete', page).show();
|
||||||
} else {
|
} else {
|
||||||
$('#fldDelete', page).hide();
|
$('#fldDelete', page).hide();
|
||||||
|
|
|
@ -645,31 +645,6 @@
|
||||||
options.tag = item.ImageTags[type];
|
options.tag = item.ImageTags[type];
|
||||||
}
|
}
|
||||||
|
|
||||||
if (item.Type == "Studio") {
|
|
||||||
|
|
||||||
return ApiClient.getStudioImageUrl(item.Name, options);
|
|
||||||
}
|
|
||||||
if (item.Type == "Person") {
|
|
||||||
|
|
||||||
return ApiClient.getPersonImageUrl(item.Name, options);
|
|
||||||
}
|
|
||||||
if (item.Type == "Genre") {
|
|
||||||
|
|
||||||
return ApiClient.getGenreImageUrl(item.Name, options);
|
|
||||||
}
|
|
||||||
if (item.Type == "MusicGenre") {
|
|
||||||
|
|
||||||
return ApiClient.getMusicGenreImageUrl(item.Name, options);
|
|
||||||
}
|
|
||||||
if (item.Type == "GameGenre") {
|
|
||||||
|
|
||||||
return ApiClient.getGameGenreImageUrl(item.Name, options);
|
|
||||||
}
|
|
||||||
if (item.Type == "MusicArtist") {
|
|
||||||
|
|
||||||
return ApiClient.getArtistImageUrl(item.Name, options);
|
|
||||||
}
|
|
||||||
|
|
||||||
// For search hints
|
// For search hints
|
||||||
return ApiClient.getImageUrl(item.Id || item.ItemId, options);
|
return ApiClient.getImageUrl(item.Id || item.ItemId, options);
|
||||||
|
|
||||||
|
@ -1501,25 +1476,6 @@
|
||||||
var itemId = item.Id;
|
var itemId = item.Id;
|
||||||
var type = item.Type;
|
var type = item.Type;
|
||||||
|
|
||||||
if (type == "Person") {
|
|
||||||
itemId = item.Name;
|
|
||||||
}
|
|
||||||
else if (type == "Studio") {
|
|
||||||
itemId = item.Name;
|
|
||||||
}
|
|
||||||
else if (type == "Genre") {
|
|
||||||
itemId = item.Name;
|
|
||||||
}
|
|
||||||
else if (type == "MusicGenre") {
|
|
||||||
itemId = item.Name;
|
|
||||||
}
|
|
||||||
else if (type == "GameGenre") {
|
|
||||||
itemId = item.Name;
|
|
||||||
}
|
|
||||||
else if (type == "MusicArtist") {
|
|
||||||
itemId = item.Name;
|
|
||||||
}
|
|
||||||
|
|
||||||
if ((item.MediaType || item.IsFolder) && item.Type != "Channel" && item.Type != "MusicArtist") {
|
if ((item.MediaType || item.IsFolder) && item.Type != "Channel" && item.Type != "MusicArtist") {
|
||||||
if (userData.Played) {
|
if (userData.Played) {
|
||||||
html += '<img data-type="' + type + '" data-itemid="' + itemId + '" class="imgUserItemRating imgPlayed" src="css/images/userdata/checkedon.png" alt="Played" title="Played" onclick="LibraryBrowser.markPlayed(this);return false;" />';
|
html += '<img data-type="' + type + '" data-itemid="' + itemId + '" class="imgUserItemRating imgPlayed" src="css/images/userdata/checkedon.png" alt="Played" title="Played" onclick="LibraryBrowser.markPlayed(this);return false;" />';
|
||||||
|
@ -1529,22 +1485,22 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
if (typeof userData.Likes == "undefined") {
|
if (typeof userData.Likes == "undefined") {
|
||||||
html += '<img onclick="LibraryBrowser.markDislike(this);return false;" data-type="' + type + '" data-itemid="' + itemId + '" class="imgUserItemRating imgDislikeOff" src="css/images/userdata/thumbs_down_off.png" alt="Dislike" title="Dislike" />';
|
html += '<img onclick="LibraryBrowser.markDislike(this);return false;" data-itemid="' + itemId + '" class="imgUserItemRating imgDislikeOff" src="css/images/userdata/thumbs_down_off.png" alt="Dislike" title="Dislike" />';
|
||||||
html += '<img onclick="LibraryBrowser.markLike(this);return false;" data-type="' + type + '" data-itemid="' + itemId + '" class="imgUserItemRating imgLikeOff" src="css/images/userdata/thumbs_up_off.png" alt="Like" title="Like" />';
|
html += '<img onclick="LibraryBrowser.markLike(this);return false;" data-itemid="' + itemId + '" class="imgUserItemRating imgLikeOff" src="css/images/userdata/thumbs_up_off.png" alt="Like" title="Like" />';
|
||||||
}
|
}
|
||||||
else if (userData.Likes) {
|
else if (userData.Likes) {
|
||||||
html += '<img onclick="LibraryBrowser.markDislike(this);return false;" data-type="' + type + '" data-itemid="' + itemId + '" class="imgUserItemRating imgDislikeOff" src="css/images/userdata/thumbs_down_off.png" alt="Dislike" title="Dislike" />';
|
html += '<img onclick="LibraryBrowser.markDislike(this);return false;" data-itemid="' + itemId + '" class="imgUserItemRating imgDislikeOff" src="css/images/userdata/thumbs_down_off.png" alt="Dislike" title="Dislike" />';
|
||||||
html += '<img onclick="LibraryBrowser.markLike(this);return false;" data-type="' + type + '" data-itemid="' + itemId + '" class="imgUserItemRating imgLike" src="css/images/userdata/thumbs_up_on.png" alt="Like" title="Like" />';
|
html += '<img onclick="LibraryBrowser.markLike(this);return false;" data-itemid="' + itemId + '" class="imgUserItemRating imgLike" src="css/images/userdata/thumbs_up_on.png" alt="Like" title="Like" />';
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
html += '<img onclick="LibraryBrowser.markDislike(this);return false;" data-type="' + type + '" data-itemid="' + itemId + '" class="imgUserItemRating imgDislike" src="css/images/userdata/thumbs_down_on.png" alt="Dislike" title="Dislike" />';
|
html += '<img onclick="LibraryBrowser.markDislike(this);return false;" data-itemid="' + itemId + '" class="imgUserItemRating imgDislike" src="css/images/userdata/thumbs_down_on.png" alt="Dislike" title="Dislike" />';
|
||||||
html += '<img onclick="LibraryBrowser.markLike(this);return false;" data-type="' + type + '" data-itemid="' + itemId + '" class="imgUserItemRating imgLikeOff" src="css/images/userdata/thumbs_up_off.png" alt="Like" title="Like" />';
|
html += '<img onclick="LibraryBrowser.markLike(this);return false;" data-itemid="' + itemId + '" class="imgUserItemRating imgLikeOff" src="css/images/userdata/thumbs_up_off.png" alt="Like" title="Like" />';
|
||||||
}
|
}
|
||||||
|
|
||||||
if (userData.IsFavorite) {
|
if (userData.IsFavorite) {
|
||||||
html += '<img onclick="LibraryBrowser.markFavorite(this);return false;" data-type="' + type + '" data-itemid="' + itemId + '" class="imgUserItemRating imgFavorite" src="css/images/userdata/heart_on.png" alt="Favorite" title="Favorite" />';
|
html += '<img onclick="LibraryBrowser.markFavorite(this);return false;" data-itemid="' + itemId + '" class="imgUserItemRating imgFavorite" src="css/images/userdata/heart_on.png" alt="Favorite" title="Favorite" />';
|
||||||
} else {
|
} else {
|
||||||
html += '<img onclick="LibraryBrowser.markFavorite(this);return false;" data-type="' + type + '" data-itemid="' + itemId + '" class="imgUserItemRating imgFavoriteOff" src="css/images/userdata/heart_off.png" alt="Favorite" title="Favorite" />';
|
html += '<img onclick="LibraryBrowser.markFavorite(this);return false;" data-itemid="' + itemId + '" class="imgUserItemRating imgFavoriteOff" src="css/images/userdata/heart_off.png" alt="Favorite" title="Favorite" />';
|
||||||
}
|
}
|
||||||
|
|
||||||
return html;
|
return html;
|
||||||
|
@ -1576,33 +1532,12 @@
|
||||||
markFavorite: function (link) {
|
markFavorite: function (link) {
|
||||||
|
|
||||||
var id = link.getAttribute('data-itemid');
|
var id = link.getAttribute('data-itemid');
|
||||||
var type = link.getAttribute('data-type');
|
|
||||||
|
|
||||||
var $link = $(link);
|
var $link = $(link);
|
||||||
|
|
||||||
var markAsFavorite = $link.hasClass('imgFavoriteOff');
|
var markAsFavorite = $link.hasClass('imgFavoriteOff');
|
||||||
|
|
||||||
if (type == "Person") {
|
ApiClient.updateFavoriteStatus(Dashboard.getCurrentUserId(), id, markAsFavorite);
|
||||||
ApiClient.updateFavoritePersonStatus(Dashboard.getCurrentUserId(), id, markAsFavorite);
|
|
||||||
}
|
|
||||||
else if (type == "Studio") {
|
|
||||||
ApiClient.updateFavoriteStudioStatus(Dashboard.getCurrentUserId(), id, markAsFavorite);
|
|
||||||
}
|
|
||||||
else if (type == "MusicArtist") {
|
|
||||||
ApiClient.updateFavoriteArtistStatus(Dashboard.getCurrentUserId(), id, markAsFavorite);
|
|
||||||
}
|
|
||||||
else if (type == "Genre") {
|
|
||||||
ApiClient.updateFavoriteGenreStatus(Dashboard.getCurrentUserId(), id, markAsFavorite);
|
|
||||||
}
|
|
||||||
else if (type == "MusicGenre") {
|
|
||||||
ApiClient.updateFavoriteMusicGenreStatus(Dashboard.getCurrentUserId(), id, markAsFavorite);
|
|
||||||
}
|
|
||||||
else if (type == "GameGenre") {
|
|
||||||
ApiClient.updateFavoriteGameGenreStatus(Dashboard.getCurrentUserId(), id, markAsFavorite);
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
ApiClient.updateFavoriteStatus(Dashboard.getCurrentUserId(), id, markAsFavorite);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (markAsFavorite) {
|
if (markAsFavorite) {
|
||||||
link.src = "css/images/userdata/heart_on.png";
|
link.src = "css/images/userdata/heart_on.png";
|
||||||
|
@ -1616,20 +1551,19 @@
|
||||||
markLike: function (link) {
|
markLike: function (link) {
|
||||||
|
|
||||||
var id = link.getAttribute('data-itemid');
|
var id = link.getAttribute('data-itemid');
|
||||||
var type = link.getAttribute('data-type');
|
|
||||||
|
|
||||||
var $link = $(link);
|
var $link = $(link);
|
||||||
|
|
||||||
if ($link.hasClass('imgLikeOff')) {
|
if ($link.hasClass('imgLikeOff')) {
|
||||||
|
|
||||||
LibraryBrowser.updateUserItemRating(type, id, true);
|
ApiClient.updateUserItemRating(Dashboard.getCurrentUserId(), id, true);
|
||||||
|
|
||||||
link.src = "css/images/userdata/thumbs_up_on.png";
|
link.src = "css/images/userdata/thumbs_up_on.png";
|
||||||
$link.addClass('imgLike').removeClass('imgLikeOff');
|
$link.addClass('imgLike').removeClass('imgLikeOff');
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
LibraryBrowser.clearUserItemRating(type, id);
|
ApiClient.clearUserItemRating(Dashboard.getCurrentUserId(), id);
|
||||||
|
|
||||||
link.src = "css/images/userdata/thumbs_up_off.png";
|
link.src = "css/images/userdata/thumbs_up_off.png";
|
||||||
$link.addClass('imgLikeOff').removeClass('imgLike');
|
$link.addClass('imgLikeOff').removeClass('imgLike');
|
||||||
|
@ -1643,20 +1577,19 @@
|
||||||
markDislike: function (link) {
|
markDislike: function (link) {
|
||||||
|
|
||||||
var id = link.getAttribute('data-itemid');
|
var id = link.getAttribute('data-itemid');
|
||||||
var type = link.getAttribute('data-type');
|
|
||||||
|
|
||||||
var $link = $(link);
|
var $link = $(link);
|
||||||
|
|
||||||
if ($link.hasClass('imgDislikeOff')) {
|
if ($link.hasClass('imgDislikeOff')) {
|
||||||
|
|
||||||
LibraryBrowser.updateUserItemRating(type, id, false);
|
ApiClient.updateUserItemRating(Dashboard.getCurrentUserId(), id, false);
|
||||||
|
|
||||||
link.src = "css/images/userdata/thumbs_down_on.png";
|
link.src = "css/images/userdata/thumbs_down_on.png";
|
||||||
$link.addClass('imgDislike').removeClass('imgDislikeOff');
|
$link.addClass('imgDislike').removeClass('imgDislikeOff');
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
LibraryBrowser.clearUserItemRating(type, id);
|
ApiClient.clearUserItemRating(Dashboard.getCurrentUserId(), id);
|
||||||
|
|
||||||
link.src = "css/images/userdata/thumbs_down_off.png";
|
link.src = "css/images/userdata/thumbs_down_off.png";
|
||||||
$link.addClass('imgDislikeOff').removeClass('imgDislike');
|
$link.addClass('imgDislikeOff').removeClass('imgDislike');
|
||||||
|
@ -1667,56 +1600,6 @@
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
updateUserItemRating: function (type, id, likes) {
|
|
||||||
|
|
||||||
if (type == "Person") {
|
|
||||||
ApiClient.updatePersonRating(Dashboard.getCurrentUserId(), id, likes);
|
|
||||||
}
|
|
||||||
else if (type == "Studio") {
|
|
||||||
ApiClient.updateStudioRating(Dashboard.getCurrentUserId(), id, likes);
|
|
||||||
}
|
|
||||||
else if (type == "MusicArtist") {
|
|
||||||
ApiClient.updateArtistRating(Dashboard.getCurrentUserId(), id, likes);
|
|
||||||
}
|
|
||||||
else if (type == "Genre") {
|
|
||||||
ApiClient.updateGenreRating(Dashboard.getCurrentUserId(), id, likes);
|
|
||||||
}
|
|
||||||
else if (type == "MusicGenre") {
|
|
||||||
ApiClient.updateMusicGenreRating(Dashboard.getCurrentUserId(), id, likes);
|
|
||||||
}
|
|
||||||
else if (type == "GameGenre") {
|
|
||||||
ApiClient.updateGameGenreRating(Dashboard.getCurrentUserId(), id, likes);
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
ApiClient.updateUserItemRating(Dashboard.getCurrentUserId(), id, likes);
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
clearUserItemRating: function (type, id) {
|
|
||||||
|
|
||||||
if (type == "Person") {
|
|
||||||
ApiClient.clearPersonRating(Dashboard.getCurrentUserId(), id);
|
|
||||||
}
|
|
||||||
else if (type == "Studio") {
|
|
||||||
ApiClient.clearStudioRating(Dashboard.getCurrentUserId(), id);
|
|
||||||
}
|
|
||||||
else if (type == "MusicArtist") {
|
|
||||||
ApiClient.clearArtistRating(Dashboard.getCurrentUserId(), id);
|
|
||||||
}
|
|
||||||
else if (type == "Genre") {
|
|
||||||
ApiClient.clearGenreRating(Dashboard.getCurrentUserId(), id);
|
|
||||||
}
|
|
||||||
else if (type == "MusicGenre") {
|
|
||||||
ApiClient.clearMusicGenreRating(Dashboard.getCurrentUserId(), id);
|
|
||||||
}
|
|
||||||
else if (type == "GameGenre") {
|
|
||||||
ApiClient.clearGameGenreRating(Dashboard.getCurrentUserId(), id);
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
ApiClient.clearUserItemRating(Dashboard.getCurrentUserId(), id);
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
getDetailImageHtml: function (item, href) {
|
getDetailImageHtml: function (item, href) {
|
||||||
|
|
||||||
var imageTags = item.ImageTags || {};
|
var imageTags = item.ImageTags || {};
|
||||||
|
@ -1733,159 +1616,27 @@
|
||||||
|
|
||||||
if (imageTags.Primary) {
|
if (imageTags.Primary) {
|
||||||
|
|
||||||
if (item.Type == "Person") {
|
url = ApiClient.getImageUrl(item.Id, {
|
||||||
url = ApiClient.getPersonImageUrl(item.Name, {
|
type: "Primary",
|
||||||
maxheight: imageHeight,
|
maxheight: imageHeight,
|
||||||
tag: imageTags.Primary,
|
tag: item.ImageTags.Primary
|
||||||
type: "Primary"
|
});
|
||||||
});
|
|
||||||
}
|
|
||||||
else if (item.Type == "Genre") {
|
|
||||||
url = ApiClient.getGenreImageUrl(item.Name, {
|
|
||||||
maxheight: imageHeight,
|
|
||||||
tag: imageTags.Primary,
|
|
||||||
type: "Primary"
|
|
||||||
});
|
|
||||||
}
|
|
||||||
else if (item.Type == "MusicGenre") {
|
|
||||||
url = ApiClient.getMusicGenreImageUrl(item.Name, {
|
|
||||||
maxheight: imageHeight,
|
|
||||||
tag: imageTags.Primary,
|
|
||||||
type: "Primary"
|
|
||||||
});
|
|
||||||
}
|
|
||||||
else if (item.Type == "GameGenre") {
|
|
||||||
url = ApiClient.getGameGenreImageUrl(item.Name, {
|
|
||||||
maxheight: imageHeight,
|
|
||||||
tag: imageTags.Primary,
|
|
||||||
type: "Primary"
|
|
||||||
});
|
|
||||||
}
|
|
||||||
else if (item.Type == "Studio") {
|
|
||||||
url = ApiClient.getStudioImageUrl(item.Name, {
|
|
||||||
maxheight: imageHeight,
|
|
||||||
tag: imageTags.Primary,
|
|
||||||
type: "Primary"
|
|
||||||
});
|
|
||||||
}
|
|
||||||
else if (item.Type == "MusicArtist") {
|
|
||||||
url = ApiClient.getArtistImageUrl(item.Name, {
|
|
||||||
maxheight: imageHeight,
|
|
||||||
tag: imageTags.Primary,
|
|
||||||
type: "Primary"
|
|
||||||
});
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
url = ApiClient.getImageUrl(item.Id, {
|
|
||||||
type: "Primary",
|
|
||||||
maxheight: imageHeight,
|
|
||||||
tag: item.ImageTags.Primary
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else if (item.BackdropImageTags && item.BackdropImageTags.length) {
|
else if (item.BackdropImageTags && item.BackdropImageTags.length) {
|
||||||
|
|
||||||
if (item.Type == "Person") {
|
url = ApiClient.getImageUrl(item.Id, {
|
||||||
url = ApiClient.getPersonImageUrl(item.Name, {
|
type: "Backdrop",
|
||||||
maxheight: imageHeight,
|
maxheight: imageHeight,
|
||||||
tag: item.BackdropImageTags[0],
|
tag: item.BackdropImageTags[0]
|
||||||
type: "Backdrop"
|
});
|
||||||
});
|
|
||||||
}
|
|
||||||
else if (item.Type == "Genre") {
|
|
||||||
url = ApiClient.getGenreImageUrl(item.Name, {
|
|
||||||
maxheight: imageHeight,
|
|
||||||
tag: item.BackdropImageTags[0],
|
|
||||||
type: "Backdrop"
|
|
||||||
});
|
|
||||||
}
|
|
||||||
else if (item.Type == "MusicGenre") {
|
|
||||||
url = ApiClient.getMusicGenreImageUrl(item.Name, {
|
|
||||||
maxheight: imageHeight,
|
|
||||||
tag: item.BackdropImageTags[0],
|
|
||||||
type: "Backdrop"
|
|
||||||
});
|
|
||||||
}
|
|
||||||
else if (item.Type == "GameGenre") {
|
|
||||||
url = ApiClient.getGameGenreImageUrl(item.Name, {
|
|
||||||
maxheight: imageHeight,
|
|
||||||
tag: item.BackdropImageTags[0],
|
|
||||||
type: "Backdrop"
|
|
||||||
});
|
|
||||||
}
|
|
||||||
else if (item.Type == "Studio") {
|
|
||||||
url = ApiClient.getStudioImageUrl(item.Name, {
|
|
||||||
maxheight: imageHeight,
|
|
||||||
tag: item.BackdropImageTags[0],
|
|
||||||
type: "Backdrop"
|
|
||||||
});
|
|
||||||
}
|
|
||||||
else if (item.Type == "MusicArtist") {
|
|
||||||
url = ApiClient.getArtistImageUrl(item.Name, {
|
|
||||||
maxheight: imageHeight,
|
|
||||||
tag: item.BackdropImageTags[0],
|
|
||||||
type: "Backdrop"
|
|
||||||
});
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
url = ApiClient.getImageUrl(item.Id, {
|
|
||||||
type: "Backdrop",
|
|
||||||
maxheight: imageHeight,
|
|
||||||
tag: item.BackdropImageTags[0]
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else if (imageTags.Thumb) {
|
else if (imageTags.Thumb) {
|
||||||
|
|
||||||
if (item.Type == "Person") {
|
url = ApiClient.getImageUrl(item.Id, {
|
||||||
url = ApiClient.getPersonImageUrl(item.Name, {
|
type: "Thumb",
|
||||||
maxheight: imageHeight,
|
maxheight: imageHeight,
|
||||||
tag: imageTags.Thumb,
|
tag: item.ImageTags.Thumb
|
||||||
type: "Thumb"
|
});
|
||||||
});
|
|
||||||
}
|
|
||||||
else if (item.Type == "Genre") {
|
|
||||||
url = ApiClient.getGenreImageUrl(item.Name, {
|
|
||||||
maxheight: imageHeight,
|
|
||||||
tag: imageTags.Thumb,
|
|
||||||
type: "Thumb"
|
|
||||||
});
|
|
||||||
}
|
|
||||||
else if (item.Type == "MusicGenre") {
|
|
||||||
url = ApiClient.getMusicGenreImageUrl(item.Name, {
|
|
||||||
maxheight: imageHeight,
|
|
||||||
tag: imageTags.Thumb,
|
|
||||||
type: "Thumb"
|
|
||||||
});
|
|
||||||
}
|
|
||||||
else if (item.Type == "GameGenre") {
|
|
||||||
url = ApiClient.getGameGenreImageUrl(item.Name, {
|
|
||||||
maxheight: imageHeight,
|
|
||||||
tag: imageTags.Thumb,
|
|
||||||
type: "Thumb"
|
|
||||||
});
|
|
||||||
}
|
|
||||||
else if (item.Type == "Studio") {
|
|
||||||
url = ApiClient.getStudioImageUrl(item.Name, {
|
|
||||||
maxheight: imageHeight,
|
|
||||||
tag: imageTags.Thumb,
|
|
||||||
type: "Thumb"
|
|
||||||
});
|
|
||||||
}
|
|
||||||
else if (item.Type == "MusicArtist") {
|
|
||||||
url = ApiClient.getArtistImageUrl(item.Name, {
|
|
||||||
maxheight: imageHeight,
|
|
||||||
tag: imageTags.Thumb,
|
|
||||||
type: "Thumb"
|
|
||||||
});
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
url = ApiClient.getImageUrl(item.Id, {
|
|
||||||
type: "Thumb",
|
|
||||||
maxheight: imageHeight,
|
|
||||||
tag: item.ImageTags.Thumb
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else if (imageTags.Disc) {
|
else if (imageTags.Disc) {
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
<div data-role="controlgroup" data-type="horizontal" class="localnav" id="userProfileNavigation" style="display: none;" data-mini="true">
|
<div data-role="controlgroup" data-type="horizontal" class="localnav" id="userProfileNavigation" style="display: none;" data-mini="true">
|
||||||
<a href="#" data-role="button" class="ui-btn-active">Profile</a>
|
<a href="#" data-role="button" class="ui-btn-active">Profile</a>
|
||||||
<a href="#" data-role="button" onclick="Dashboard.navigate('userimage.html', true);">Image</a>
|
<a href="#" data-role="button" onclick="Dashboard.navigate('userimage.html', true);">Image</a>
|
||||||
<a href="#" data-role="button" onclick="Dashboard.navigate('userparentalcontrol.html', true);" id="lnkParentalControl" style="display: none;">Sharing</a>
|
<a href="#" data-role="button" onclick="Dashboard.navigate('userparentalcontrol.html', true);" id="lnkParentalControl" style="display: none;">Library Access</a>
|
||||||
<a href="#" data-role="button" onclick="Dashboard.navigate('userpassword.html', true);">Password</a>
|
<a href="#" data-role="button" onclick="Dashboard.navigate('userpassword.html', true);">Password</a>
|
||||||
<a href="#" data-role="button" onclick="Dashboard.navigate('usersettings.html', true);">Preferences</a>
|
<a href="#" data-role="button" onclick="Dashboard.navigate('usersettings.html', true);">Preferences</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
<div data-role="controlgroup" data-type="horizontal" class="localnav" data-mini="true">
|
<div data-role="controlgroup" data-type="horizontal" class="localnav" data-mini="true">
|
||||||
<a href="#" onclick="Dashboard.navigate('useredit.html', true);" data-role="button">Profile</a>
|
<a href="#" onclick="Dashboard.navigate('useredit.html', true);" data-role="button">Profile</a>
|
||||||
<a href="#" data-role="button" class="ui-btn-active">Image</a>
|
<a href="#" data-role="button" class="ui-btn-active">Image</a>
|
||||||
<a href="#" data-role="button" onclick="Dashboard.navigate('userparentalcontrol.html', true);" id="lnkParentalControl" style="display: none;">Sharing</a>
|
<a href="#" data-role="button" onclick="Dashboard.navigate('userparentalcontrol.html', true);" id="lnkParentalControl" style="display: none;">Library Access</a>
|
||||||
<a href="#" data-role="button" onclick="Dashboard.navigate('userpassword.html', true);">Password</a>
|
<a href="#" data-role="button" onclick="Dashboard.navigate('userpassword.html', true);">Password</a>
|
||||||
<a href="#" data-role="button" onclick="Dashboard.navigate('usersettings.html', true);">Preferences</a>
|
<a href="#" data-role="button" onclick="Dashboard.navigate('usersettings.html', true);">Preferences</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
<div data-role="controlgroup" data-type="horizontal" class="localnav" data-mini="true">
|
<div data-role="controlgroup" data-type="horizontal" class="localnav" data-mini="true">
|
||||||
<a href="#" data-role="button" onclick="Dashboard.navigate('useredit.html', true);">Profile</a>
|
<a href="#" data-role="button" onclick="Dashboard.navigate('useredit.html', true);">Profile</a>
|
||||||
<a href="#" data-role="button" onclick="Dashboard.navigate('userimage.html', true);">Image</a>
|
<a href="#" data-role="button" onclick="Dashboard.navigate('userimage.html', true);">Image</a>
|
||||||
<a href="#" data-role="button" onclick="Dashboard.navigate('userparentalcontrol.html', true);" class="ui-btn-active">Sharing</a>
|
<a href="#" data-role="button" onclick="Dashboard.navigate('userparentalcontrol.html', true);" class="ui-btn-active">Library Access</a>
|
||||||
<a href="#" data-role="button" onclick="Dashboard.navigate('userpassword.html', true);">Password</a>
|
<a href="#" data-role="button" onclick="Dashboard.navigate('userpassword.html', true);">Password</a>
|
||||||
<a href="#" data-role="button" onclick="Dashboard.navigate('usersettings.html', true);">Preferences</a>
|
<a href="#" data-role="button" onclick="Dashboard.navigate('usersettings.html', true);">Preferences</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
<div data-role="controlgroup" data-type="horizontal" class="localnav" data-mini="true">
|
<div data-role="controlgroup" data-type="horizontal" class="localnav" data-mini="true">
|
||||||
<a href="#" onclick="Dashboard.navigate('useredit.html', true);" data-role="button">Profile</a>
|
<a href="#" onclick="Dashboard.navigate('useredit.html', true);" data-role="button">Profile</a>
|
||||||
<a href="#" data-role="button" onclick="Dashboard.navigate('userimage.html', true);">Image</a>
|
<a href="#" data-role="button" onclick="Dashboard.navigate('userimage.html', true);">Image</a>
|
||||||
<a href="#" data-role="button" onclick="Dashboard.navigate('userparentalcontrol.html', true);" id="lnkParentalControl" style="display: none;">Sharing</a>
|
<a href="#" data-role="button" onclick="Dashboard.navigate('userparentalcontrol.html', true);" id="lnkParentalControl" style="display: none;">Library Access</a>
|
||||||
<a href="#" data-role="button" class="ui-btn-active">Password</a>
|
<a href="#" data-role="button" class="ui-btn-active">Password</a>
|
||||||
<a href="#" data-role="button" onclick="Dashboard.navigate('usersettings.html', true);">Preferences</a>
|
<a href="#" data-role="button" onclick="Dashboard.navigate('usersettings.html', true);">Preferences</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
<div data-role="controlgroup" data-type="horizontal" class="localnav" data-mini="true">
|
<div data-role="controlgroup" data-type="horizontal" class="localnav" data-mini="true">
|
||||||
<a href="#" data-role="button" onclick="Dashboard.navigate('useredit.html', true);">Profile</a>
|
<a href="#" data-role="button" onclick="Dashboard.navigate('useredit.html', true);">Profile</a>
|
||||||
<a href="#" data-role="button" onclick="Dashboard.navigate('userimage.html', true);">Image</a>
|
<a href="#" data-role="button" onclick="Dashboard.navigate('userimage.html', true);">Image</a>
|
||||||
<a href="#" data-role="button" onclick="Dashboard.navigate('userparentalcontrol.html', true);" id="lnkParentalControl" style="display: none;">Sharing</a>
|
<a href="#" data-role="button" onclick="Dashboard.navigate('userparentalcontrol.html', true);" id="lnkParentalControl" style="display: none;">Library Access</a>
|
||||||
<a href="#" data-role="button" onclick="Dashboard.navigate('userpassword.html', true);">Password</a>
|
<a href="#" data-role="button" onclick="Dashboard.navigate('userpassword.html', true);">Password</a>
|
||||||
<a href="#" data-role="button" class="ui-btn-active">Preferences</a>
|
<a href="#" data-role="button" class="ui-btn-active">Preferences</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue