turn page unload request sync and save current player position, closes: #12

This commit is contained in:
j 2025-07-06 20:24:33 +01:00
commit d8d325473f

View file

@ -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() {