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

added content type selection

This commit is contained in:
Luke Pulverenti 2014-12-22 01:50:29 -05:00
parent cb560ec779
commit 5ffb518fe0
2 changed files with 17 additions and 15 deletions

View file

@ -17,7 +17,9 @@
Dashboard.showLoadingMsg();
var promise1 = MetadataEditor.getItemPromise();
var promise2 = ApiClient.getJSON(ApiClient.getUrl('Items/' + MetadataEditor.currentItemId + '/MetadataEditor'));
var promise2 = MetadataEditor.currentItemId ?
ApiClient.getJSON(ApiClient.getUrl('Items/' + MetadataEditor.currentItemId + '/MetadataEditor')) :
{};
$.when(promise1, promise2).done(function (response1, response2) {