positions not ids and other cleanups

This commit is contained in:
j 2011-06-01 13:03:43 +02:00
commit c37d303752
9 changed files with 72 additions and 49 deletions

View file

@ -6,8 +6,8 @@ pandora.ui.flipbook = function(item) {
pandora.URL.set(item + '/timeline');
});
pandora.api.getItem(item, function(result) {
var duration = result.data.item.duration,
posterFrame = result.data.item.posterFrame || parseInt(duration/2),
var duration = result.data.duration,
posterFrame = result.data.posterFrame || parseInt(duration/2),
steps = 24,
framePrefix = '/' + item + '/frame/' + that.width() + '/',
frames = {};