mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
add direct browse links
This commit is contained in:
parent
e97908d6c9
commit
08b0e1d5e7
2 changed files with 9 additions and 2 deletions
|
@ -23,7 +23,7 @@
|
|||
</div>
|
||||
|
||||
<div style="margin: -25px 0 1em;">
|
||||
<a id="lnkBrowseImages" href="#popupDownload" data-rel="popup" data-position-to="window" data-role="button" data-inline="true" data-icon="plus" data-mini="true" data-transition="pop">Browse Online Images</a>
|
||||
<a class="lnkBrowseImages" href="#popupDownload" data-rel="popup" data-position-to="window" data-role="button" data-inline="true" data-icon="plus" data-mini="true" data-transition="pop">Browse Online Images</a>
|
||||
<a href="#popupUpload" data-rel="popup" data-position-to="window" data-role="button" data-inline="true" data-icon="plus" data-mini="true" data-transition="pop">Upload Image</a>
|
||||
</div>
|
||||
|
||||
|
|
|
@ -312,6 +312,8 @@
|
|||
|
||||
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 += '<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 += '</p>';
|
||||
|
||||
html += '</div>';
|
||||
|
@ -497,6 +499,11 @@
|
|||
|
||||
|
||||
};
|
||||
|
||||
self.showDownloadMenu = function(type) {
|
||||
browsableImageType = type;
|
||||
$('.lnkBrowseImages').trigger('click');
|
||||
};
|
||||
}
|
||||
|
||||
window.EditItemImagesPage = new editItemImages();
|
||||
|
@ -522,7 +529,7 @@
|
|||
}
|
||||
});
|
||||
|
||||
$('#lnkBrowseImages', page).on('click', function () {
|
||||
$('.lnkBrowseImages', page).on('click', function () {
|
||||
|
||||
reloadBrowsableImages(page);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue