diff --git a/dashboard-ui/scripts/Itemdetailpage.js b/dashboard-ui/scripts/Itemdetailpage.js index 55899f9003..b41e58b570 100644 --- a/dashboard-ui/scripts/Itemdetailpage.js +++ b/dashboard-ui/scripts/Itemdetailpage.js @@ -6,7 +6,7 @@ $('#galleryCollapsible', this).on('expand', ItemDetailPage.onGalleryExpand); }, - + onPageHide: function () { $('#galleryCollapsible', this).off('expand', ItemDetailPage.onGalleryExpand); @@ -31,7 +31,7 @@ ItemDetailPage.item = item; var name = item.Name; - + if (item.IndexNumber != null) { name = item.IndexNumber + " - " + name; } @@ -45,17 +45,17 @@ if (!item.Chapters || !item.Chapters.length) { $('#scenesCollapsible', page).remove(); - }else { + } else { ItemDetailPage.renderScenes(item); } if (!item.LocalTrailerCount || item.LocalTrailerCount == 0) { $('#trailersCollapsible', page).remove(); - }else { + } else { ItemDetailPage.renderTrailers(item); } if (!item.SpecialFeatureCount || item.SpecialFeatureCount == 0) { $('#specialsCollapsible', page).remove(); - }else { + } else { ItemDetailPage.renderSpecials(item); } @@ -264,7 +264,7 @@ return html; }, - onScenesExpand: function() { + onScenesExpand: function () { if (ItemDetailPage.item) { @@ -283,10 +283,10 @@ for (var i = 0, length = chapters.length; i < length; i++) { var chapter = chapters[i]; - var chapter_name = chapter.Name || "Chapter "+i; + var chapter_name = chapter.Name || "Chapter " + i; html += '
'; - html += ''; + html += ''; if (chapter.ImageTag) { @@ -326,7 +326,7 @@ MediaPlayer.play([ItemDetailPage.item], startPosition); }, - onGalleryExpand: function() { + onGalleryExpand: function () { if (ItemDetailPage.item) { @@ -380,22 +380,22 @@ $('#galleryContent', page).html(html).trigger('create'); }, - createGalleryImage: function(itemId, type, tag, index) { + createGalleryImage: function (itemId, type, tag, index) { var downloadWidth = 400; var lightboxWidth = 800; var html = ''; - if (typeof(index)=="undefined") index = 0; + if (typeof (index) == "undefined") index = 0; - html += ''; + html += ''; html += ''; - html += '
'; + html += ''; } $('#trailersContent', page).html(html); @@ -492,7 +493,7 @@ }); }, - onSpecialsExpand: function() { + onSpecialsExpand: function () { if (ItemDetailPage.item) { @@ -514,22 +515,24 @@ var special = specials[i]; html += '