forked from 0x2620/pandora
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() {
|
pandora.unloadWindow = function() {
|
||||||
/*
|
// disable async requests to block until window is closed
|
||||||
// fixme: ajax request has to have async set to false for this to work
|
Ox.Request.async = false
|
||||||
pandora.user.ui.section == 'items'
|
pandora.user.ui.section == 'items'
|
||||||
&& pandora.user.ui.item
|
&& pandora.user.ui.item
|
||||||
&& ['video', 'timeline'].indexOf(pandora.user.ui.itemView) > -1
|
&& ['player', 'editor', 'timeline'].indexOf(pandora.user.ui.itemView) > -1
|
||||||
&& pandora.UI.set(
|
&& pandora.UI.set(
|
||||||
'videoPoints.' + pandora.user.ui.item,
|
'videoPoints.' + pandora.user.ui.item + '.position',
|
||||||
pandora.$ui[
|
pandora.$ui[pandora.user.ui.itemView].options('position')
|
||||||
pandora.user.ui.itemView == 'video' ? 'player' : 'editor'
|
|
||||||
].options('position')
|
|
||||||
);
|
);
|
||||||
*/
|
|
||||||
};
|
};
|
||||||
|
|
||||||
pandora.updateItemContext = function() {
|
pandora.updateItemContext = function() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue