mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
read/write remote trailers to xml
This commit is contained in:
parent
4a439addcd
commit
c6dd5d44df
35 changed files with 64 additions and 42 deletions
|
@ -321,7 +321,7 @@
|
|||
html += '<div style="height:108px;vertical-align:top;background-repeat:no-repeat;background-size:contain;background-image:url(\'' + LibraryBrowser.getImageUrl(currentItem, image.ImageType, image.ImageIndex, { maxheight: 216 }) + '\');"></div>';
|
||||
|
||||
html += '<div>';
|
||||
|
||||
|
||||
if (image.ImageType !== "Backdrop" && image.ImageType !== "Screenshot") {
|
||||
html += '<p>' + image.ImageType + '</p>';
|
||||
}
|
||||
|
@ -345,12 +345,12 @@
|
|||
}
|
||||
}
|
||||
|
||||
html += '<button type="button" data-icon="delete" data-mini="true" data-inline="true" data-iconpos="notext" onclick="EditItemImagesPage.deleteImage(\'' + image.ImageType + '\', ' + (image.ImageIndex != null ? image.ImageIndex : "null") + ');">Delete</button>';
|
||||
|
||||
if (imageProviders.length) {
|
||||
html += '<button type="button" data-icon="cloud" data-mini="true" data-inline="true" data-iconpos="notext" onclick="EditItemImagesPage.showDownloadMenu(\'' + image.ImageType + '\');">Browse Online Images</button>';
|
||||
}
|
||||
|
||||
html += '<button type="button" data-icon="delete" data-mini="true" data-inline="true" data-iconpos="notext" onclick="EditItemImagesPage.deleteImage(\'' + image.ImageType + '\', ' + (image.ImageIndex != null ? image.ImageIndex : "null") + ');">Delete</button>';
|
||||
|
||||
html += '</p>';
|
||||
|
||||
html += '</div>';
|
||||
|
|
|
@ -245,7 +245,7 @@
|
|||
|
||||
themes: {
|
||||
theme: 'mb3',
|
||||
url: 'thirdparty/jstree1.0fix3/themes/mb3/style.css?v=' + Dashboard.initialServerVersion
|
||||
url: 'thirdparty/jstree1.0/themes/mb3/style.css?v=' + Dashboard.initialServerVersion
|
||||
}
|
||||
|
||||
}).off('select_node.jstree').on('select_node.jstree', function (event, data) {
|
||||
|
|
|
@ -56,7 +56,7 @@
|
|||
},
|
||||
|
||||
shouldRefreshLibraryAfterChanges: function () {
|
||||
|
||||
|
||||
return $($.mobile.activePage).is('#mediaLibraryPage');
|
||||
},
|
||||
|
||||
|
@ -84,6 +84,12 @@
|
|||
Dashboard.hideLoadingMsg();
|
||||
},
|
||||
|
||||
changeCollectionType: function () {
|
||||
|
||||
Dashboard.alert("To change the collection type, please remove and rebuild the collection with the new type.");
|
||||
|
||||
},
|
||||
|
||||
getVirtualFolderHtml: function (virtualFolder, isCollapsed, index) {
|
||||
|
||||
isCollapsed = isCollapsed ? "true" : "false";
|
||||
|
@ -118,8 +124,9 @@
|
|||
html += '</ul>';
|
||||
|
||||
html += '<p>';
|
||||
html += '<button type="button" data-inline="true" data-icon="minus" data-folderindex="' + index + '" onclick="MediaLibraryPage.deleteVirtualFolder(this);" data-mini="true">Remove collection</button>';
|
||||
html += '<button type="button" data-inline="true" data-icon="pencil" data-folderindex="' + index + '" onclick="MediaLibraryPage.renameVirtualFolder(this);" data-mini="true">Rename collection</button>';
|
||||
html += '<button type="button" data-inline="true" data-icon="minus" data-folderindex="' + index + '" onclick="MediaLibraryPage.deleteVirtualFolder(this);" data-mini="true">Remove</button>';
|
||||
html += '<button type="button" data-inline="true" data-icon="pencil" data-folderindex="' + index + '" onclick="MediaLibraryPage.renameVirtualFolder(this);" data-mini="true">Rename</button>';
|
||||
html += '<button type="button" data-inline="true" data-icon="pencil" data-folderindex="' + index + '" onclick="MediaLibraryPage.changeCollectionType(this);" data-mini="true">Change type</button>';
|
||||
html += '</p>';
|
||||
|
||||
html += '</div>';
|
||||
|
@ -226,7 +233,7 @@
|
|||
if (showCollectionType) {
|
||||
|
||||
var collectionType = $('#selectCollectionType', popup).val();
|
||||
|
||||
|
||||
// The server expects an empty value for mixed
|
||||
if (collectionType == 'mixed') {
|
||||
collectionType = '';
|
||||
|
@ -245,7 +252,7 @@
|
|||
|
||||
getCollectionTypeOptionsHtml: function () {
|
||||
|
||||
return MediaLibraryPage.getCollectionTypeOptions().filter(function(i) {
|
||||
return MediaLibraryPage.getCollectionTypeOptions().filter(function (i) {
|
||||
|
||||
return i.isSelectable !== false;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue