make video position stick when switching between player and timeline view (part 5)

This commit is contained in:
rlx 2011-01-18 18:01:42 +00:00
parent 5eff86e6a4
commit 43c623e953

View file

@ -3559,10 +3559,6 @@ var pandora = new Ox.App({
//app.$ui.rightPanel.replace(0, app.$ui.toolbar = ui.toolbar()); //app.$ui.rightPanel.replace(0, app.$ui.toolbar = ui.toolbar());
//ui.item().display(); //ui.item().display();
} }
} else {
if (!app.user.ui.item) {
app.$ui.mainPanel.replace(1, app.$ui.rightPanel = ui.rightPanel());
//ui.list(app.user.ui.listView).display();
} else { } else {
if (['player', 'timeline'].indexOf(old.user.ui.itemView) > -1) { if (['player', 'timeline'].indexOf(old.user.ui.itemView) > -1) {
UI.set( UI.set(
@ -3570,6 +3566,10 @@ var pandora = new Ox.App({
app.$ui[old.user.ui.itemView == 'player' ? 'player' : 'editor'].options('position') 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 {
app.$ui.contentPanel.replace(1, ui.item()); app.$ui.contentPanel.replace(1, ui.item());
} }
} }