From a109f67db5520cb677caa18e57301ed5b14627a8 Mon Sep 17 00:00:00 2001 From: rolux Date: Tue, 18 Jan 2011 18:01:42 +0000 Subject: [PATCH] make video position stick when switching between player and timeline view (part 5) --- static/js/pandora.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/static/js/pandora.js b/static/js/pandora.js index f809303a..a9c58d20 100755 --- a/static/js/pandora.js +++ b/static/js/pandora.js @@ -3560,16 +3560,16 @@ var pandora = new Ox.App({ //ui.item().display(); } } else { + if (['player', 'timeline'].indexOf(old.user.ui.itemView) > -1) { + UI.set( + 'videoPosition|' + old.user.ui.item, + app.$ui[old.user.ui.itemView == 'player' ? 'player' : 'editor'].options('position') + ); + } if (!app.user.ui.item) { app.$ui.mainPanel.replace(1, app.$ui.rightPanel = ui.rightPanel()); //ui.list(app.user.ui.listView).display(); } else { - if (['player', 'timeline'].indexOf(old.user.ui.itemView) > -1) { - UI.set( - 'videoPosition|' + old.user.ui.item, - app.$ui[old.user.ui.itemView == 'player' ? 'player' : 'editor'].options('position') - ); - } app.$ui.contentPanel.replace(1, ui.item()); } }