1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

more on image uploading

This commit is contained in:
Luke Pulverenti 2013-05-05 00:49:49 -04:00
parent e089b61b62
commit fcf4964e3a
10 changed files with 346 additions and 72 deletions

View file

@ -78,6 +78,16 @@
$('#itemName', page).html(name);
Dashboard.setPageTitle(name);
});
Dashboard.getCurrentUser().done(function (user) {
if (user.Configuration.IsAdministrator) {
$('#editButtonContainer', page).show();
} else {
$('#editButtonContainer', page).hide();
}
});
}
$(document).on('pageinit', "#itemListPage", function () {
@ -120,6 +130,11 @@
reloadItems(page);
});
$('#btnEdit', page).on('click', function () {
Dashboard.navigate("edititemimages.html?id=" + query.ParentId);
});
}).on('pageshow', "#itemListPage", function () {
query.ParentId = getParameterByName('parentId');