1
0
Fork 0
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:
Luke Pulverenti 2013-05-22 15:49:12 -04:00
parent 14bbc7b9c5
commit 057f6bfabf
7 changed files with 163 additions and 89 deletions

View file

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