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

update translations

This commit is contained in:
Luke Pulverenti 2014-06-20 11:10:40 -04:00
parent 14042a1ff3
commit 11cb5f0b45
3 changed files with 20 additions and 105 deletions

View file

@ -50,9 +50,18 @@
function reload(page) {
Dashboard.showLoadingMsg();
$('#btnEdit', page).attr('href', '#');
getPromise().done(function (item) {
var context = getParameterByName('context');
var editQuery = '?id=' + item.Id;
if (context) {
editQuery += '&context=' + context;
}
$('#btnEdit', page).attr('href', 'edititemmetadata.html' + editQuery);
currentItem = item;
renderHeader(page, item);
@ -69,7 +78,7 @@
$(page).trigger('displayingitem', [{
item: item,
context: getParameterByName('context')
context: context
}]);
Dashboard.getCurrentUser().done(function (user) {
@ -80,7 +89,8 @@
$('#playButtonContainer', page).hide();
}
var editImagesHref = user.Configuration.IsAdministrator ? 'edititemimages.html' + getWindowLocationSearch() : null;
var editImagesHref = user.Configuration.IsAdministrator ? 'edititemimages.html' + editQuery : null;
$('#itemImage', page).html(LibraryBrowser.getDetailImageHtml(item, editImagesHref));
if (user.Configuration.IsAdministrator && item.LocationType !== "Offline") {
@ -520,8 +530,6 @@
reload(page);
$('#btnEdit', page).attr('href', 'edititemmetadata.html' + getWindowLocationSearch());
}).on('pagehide', "#itemByNameDetailPage", function () {
currentItem = null;