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

allow editing of ibn items

This commit is contained in:
Luke Pulverenti 2013-06-27 09:31:49 -04:00
parent c62dc5a3c2
commit beddd5361d
3 changed files with 93 additions and 6 deletions

View file

@ -75,6 +75,16 @@
ApiClient.sendWebSocketMessage("Context", vals.join('|'));
}
Dashboard.getCurrentUser().done(function (user) {
if (user.Configuration.IsAdministrator) {
$('#editButtonContainer', page).show();
} else {
$('#editButtonContainer', page).hide();
}
});
Dashboard.hideLoadingMsg();
});
}
@ -470,6 +480,11 @@
RemoteControl.showMenu({ item: currentItem, context: getParameterByName('context') || '' });
});
$('#btnEdit', page).on('click', function () {
Dashboard.navigate("edititemmetadata.html", true);
});
}).on('pageshow', "#itemByNameDetailPage", function () {
var page = this;