]> _ Git - fluidbook-html5.git/commitdiff
wip #1111 @1.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 15 Feb 2017 16:52:46 +0000 (17:52 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 15 Feb 2017 16:52:46 +0000 (17:52 +0100)
js/libs/fluidbook/fluidbook.js

index e169f7d566750ee9aba5a2ba0c605824cf0aca3f..94d16b5bb4cc36932a734990bb9379ca43bec7c8 100644 (file)
@@ -301,7 +301,11 @@ Fluidbook.prototype = {
         if (args.length <= 1 || args[1] == '' || args[1] == undefined) {
             return this.setCurrentPage('1');
         } else if (args[1] == 'page') {
-            page = parseInt(args[2]);
+            if (fluidbook.datas.pageLabels[args[2]] !== undefined) {
+                page = fluidbook.datas.pageLabels[args[2]];
+            } else {
+                page = parseInt(args[2]);
+            }
             if (isNaN(page) || page == undefined) {
                 return this.setCurrentPage('1');
             }