if (!this.fluidbook.loader.arePreloadedPages(turning.end)) {
this.fluidbook.displayLoader();
}
+ var currentDoublePage = $("#currentDoublePage");
+ var doublePage = $("#nextDoublePage");
this.fluidbook.loader.preloadPagesBeforeTransition(turning.end, function () {
- $this.beforeTransition(pageNr, 3, turning);
- $this.flip3d.playTurn(turning, function () {
- $this.afterTransition(pageNr);
+ $this.fluidbook.loader.setContentsInDoublePage(currentDoublePage, turning.flat, true, function () {
+ $this.fluidbook.loader.setContentsInDoublePage(doublePage, turning.flip, true, function () {
+ $this.beforeTransition(pageNr, 3, turning);
+ $this.flip3d.playTurn(turning, function () {
+ $this.fluidbook.loader.setContentsInDoublePage(doublePage, turning.end, false, function () {
+ $("#currentDoublePage").remove();
+ $(doublePage).attr('id', 'currentDoublePage');
+ $this.afterTransition(pageNr);
+ });
+ });
+ });
});
});
},