]> _ Git - fluidbook-html5.git/commitdiff
#2277
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 6 Feb 2019 16:14:59 +0000 (17:14 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 6 Feb 2019 16:14:59 +0000 (17:14 +0100)
js/libs/fluidbook/fluidbook.contentlock.js
js/libs/fluidbook/fluidbook.js

index 889263c8899dae050a6904f59a54d729ac6034d6..393f28e59db0011625d47f5450c1ff3ed764eff1 100644 (file)
@@ -111,7 +111,7 @@ FluidbookContentLock.prototype = {
         });
 
         if (change || this.getNextLockPage() !== this.getMaxPage()) {
-            this.setMaxPage(this.getNextLockPage(), false)
+            this.unlockNextPage();
         }
     },
 
@@ -125,4 +125,8 @@ FluidbookContentLock.prototype = {
 
         return this.linksActions[linkId].indexOf(action) >= 0;
     },
+
+    unlockNextPage: function () {
+        this.setMaxPage(this.getNextLockPage(), false)
+    }
 }
\ No newline at end of file
index 4e06e0ee7a739aba62ebf44f535481212699104e..0edb7d7e8beee1c1053302c1ef1e3e3b5c267031 100644 (file)
@@ -647,7 +647,7 @@ Fluidbook.prototype = {
         return this.datas.numerotation[page - 1];
     },
     virtualToPhysical: function (page) {
-        if(page===undefined){
+        if (page === undefined) {
             return false;
         }
         var i = this.datas.numerotation.indexOf(page.toString());
@@ -1036,6 +1036,10 @@ Fluidbook.prototype = {
         f();
     },
 
+    unlockNextPage: function () {
+        this.contentlock.unlockNextPage();
+    },
+
     flushNetworkQueue: function () {
         if (this.networkPauseQueue.length === 0 || this.networkPause) {
             return;