From 86e2ec8d876bf9ea7687481fff8c35dce885348c Mon Sep 17 00:00:00 2001 From: rolux Date: Sat, 30 Jun 2012 20:54:46 +0000 Subject: [PATCH] if the index property of the images in the poster list is not a string, Ox.api will coerce it to string in the positions request, which will cause a select event on info page load --- static/js/pandora/infoView.0xdb.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/static/js/pandora/infoView.0xdb.js b/static/js/pandora/infoView.0xdb.js index b540de7c..26e20fca 100644 --- a/static/js/pandora/infoView.0xdb.js +++ b/static/js/pandora/infoView.0xdb.js @@ -680,7 +680,9 @@ pandora.ui.infoView = function(data) { id: data.id, keys: [ui.icons == 'posters' ? 'posters' : 'frames'] }, 0, function(result) { - var images = result.data[ui.icons == 'posters' ? 'posters' : 'frames'], + var images = result.data[ui.icons == 'posters' ? 'posters' : 'frames'].map(function(image) { + return Ox.extend(image, {index: image.index.toString()}); + }), selectedImage = images.filter(function(image) { return image.selected; })[0];