From e45ea7aa7bf2aa1c3e360615b54cc3e072b29607 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Tue, 26 Mar 2013 11:26:29 -0400 Subject: [PATCH] fixed item id not being passed in --- dashboard-ui/scripts/ItemDetailPage.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/dashboard-ui/scripts/ItemDetailPage.js b/dashboard-ui/scripts/ItemDetailPage.js index 03ad3182c5..5956624af7 100644 --- a/dashboard-ui/scripts/ItemDetailPage.js +++ b/dashboard-ui/scripts/ItemDetailPage.js @@ -335,29 +335,29 @@ if (imageTags.Logo) { - html += ItemDetailPage.createGalleryImage(item, "Logo", item.ImageTags.Logo); + html += ItemDetailPage.createGalleryImage(item.Id, "Logo", item.ImageTags.Logo); } if (imageTags.Thumb) { - html += ItemDetailPage.createGalleryImage(item, "Thumb", item.ImageTags.Thumb); + html += ItemDetailPage.createGalleryImage(item.Id, "Thumb", item.ImageTags.Thumb); } if (imageTags.Art) { - html += ItemDetailPage.createGalleryImage(item, "Art", item.ImageTags.Art); + html += ItemDetailPage.createGalleryImage(item.Id, "Art", item.ImageTags.Art); } if (imageTags.Menu) { - html += ItemDetailPage.createGalleryImage(item, "Menu", item.ImageTags.Menu); + html += ItemDetailPage.createGalleryImage(item.Id, "Menu", item.ImageTags.Menu); } if (imageTags.Disc) { - html += ItemDetailPage.createGalleryImage(item, "Disc", item.ImageTags.Disc); + html += ItemDetailPage.createGalleryImage(item.Id, "Disc", item.ImageTags.Disc); } if (imageTags.Box) { - html += ItemDetailPage.createGalleryImage(item, "Box", item.ImageTags.Box); + html += ItemDetailPage.createGalleryImage(item.Id, "Box", item.ImageTags.Box); } if (item.BackdropImageTags) { @@ -371,7 +371,7 @@ $('#galleryContent', page).html(html).trigger('create'); }, - createGalleryImage: function(item_id, type, tag, index) { + createGalleryImage: function(itemId, type, tag, index) { var downloadWidth = 400; var lightboxWidth = 800; @@ -380,7 +380,7 @@ if (typeof(index)=="undefined") index = 0; html += ''; - html += ''; html += '
'; html += 'Close'; - html += '