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
|
@ -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