mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
added refresh metadata button to the edit page
This commit is contained in:
parent
14bbc7b9c5
commit
057f6bfabf
7 changed files with 163 additions and 89 deletions
|
@ -10,6 +10,10 @@
|
|||
|
||||
ApiClient.getItem(Dashboard.getCurrentUserId(), id).done(function (item) {
|
||||
|
||||
$('#btnRefresh', page).button('enable');
|
||||
|
||||
$('#refreshLoading', page).hide();
|
||||
|
||||
currentItem = item;
|
||||
|
||||
LibraryBrowser.renderName(item, $('.itemName', page), true);
|
||||
|
@ -214,6 +218,19 @@
|
|||
var page = this;
|
||||
|
||||
|
||||
$('#btnRefresh', this).on('click', function () {
|
||||
|
||||
$(this).button('disable');
|
||||
|
||||
$('#refreshLoading', page).show();
|
||||
|
||||
ApiClient.refreshItem(currentItem.Id, true, false).done(function () {
|
||||
|
||||
reload(page);
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
}).on('pageshow', "#editItemMetadataPage", function () {
|
||||
|
||||
var page = this;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue