display movie budget

This commit is contained in:
Luke Pulverenti 2013-04-12 11:25:00 -04:00
parent 4cb7ebfc88
commit 8785935d23
5 changed files with 13 additions and 6 deletions

View File

@ -251,11 +251,6 @@
.posterDetailViewImage {
max-height: 140px;
max-width: 50%;
}
.posterDetailViewContentContainer {
width: 47%;
}
.posterDetailViewItem .userDataIcons {

File diff suppressed because one or more lines are too long

View File

@ -37,6 +37,7 @@
<p id="itemCommunityRating"></p>
<p id="itemMiscInfo" class="itemMiscInfo"></p>
<p id="itemBudget"></p>
<p id="itemGenres"></p>
<p id="itemStudios"></p>
<p id="itemLinks"></p>

View File

@ -50,6 +50,7 @@
}
function setInitialCollapsibleState(page, item) {
if (!item.MediaStreams || !item.MediaStreams.length) {
$('#mediaInfoCollapsible', page).hide();
} else {
@ -102,6 +103,8 @@
$('#itemCommunityRating', page).hide();
}
LibraryBrowser.renderBudget($('#itemBudget', page), item);
$('#itemMiscInfo', page).html(LibraryBrowser.getMiscInfoHtml(item));
LibraryBrowser.renderGenres($('#itemGenres', page), item);

View File

@ -846,6 +846,14 @@
elem.show().html(html).trigger('create');
} else {
elem.hide();
}
},
renderBudget: function (elem, item) {
if (item.Budget) {
elem.show().html('Budget:&nbsp;&nbsp;$' + item.Budget);
} else {
elem.hide();
}