turn page unload request sync and save current player position, closes: #12
This commit is contained in:
parent
68302c2ca5
commit
d8d325473f
1 changed files with 5 additions and 8 deletions
|
|
@ -3246,18 +3246,15 @@ pandora.setTheme = function(theme) {
|
|||
};
|
||||
|
||||
pandora.unloadWindow = function() {
|
||||
/*
|
||||
// fixme: ajax request has to have async set to false for this to work
|
||||
// disable async requests to block until window is closed
|
||||
Ox.Request.async = false
|
||||
pandora.user.ui.section == 'items'
|
||||
&& pandora.user.ui.item
|
||||
&& ['video', 'timeline'].indexOf(pandora.user.ui.itemView) > -1
|
||||
&& ['player', 'editor', 'timeline'].indexOf(pandora.user.ui.itemView) > -1
|
||||
&& pandora.UI.set(
|
||||
'videoPoints.' + pandora.user.ui.item,
|
||||
pandora.$ui[
|
||||
pandora.user.ui.itemView == 'video' ? 'player' : 'editor'
|
||||
].options('position')
|
||||
'videoPoints.' + pandora.user.ui.item + '.position',
|
||||
pandora.$ui[pandora.user.ui.itemView].options('position')
|
||||
);
|
||||
*/
|
||||
};
|
||||
|
||||
pandora.updateItemContext = function() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue