]> _ Git - fluidbook-html5.git/commitdiff
try #2640 @0.25
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 19 Mar 2019 16:06:06 +0000 (17:06 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 19 Mar 2019 16:06:06 +0000 (17:06 +0100)
js/libs/fluidbook/fluidbook.js

index 92b92917f72c321b59e42cecf0085e5bb0bfd803..4579371454070bb794f888c42bc788e650712f6b 100644 (file)
@@ -422,7 +422,7 @@ Fluidbook.prototype = {
         // Handle flash URL. See #2640
         if (args.length > 1) {
             var a1 = args[1];
-            if (a1.match(/^[0-9]*$/)) {
+            if (a1.match(/^[0-9]+$/)) {
                 args = ['#', 'page', a1];
             }
         }
@@ -462,12 +462,6 @@ Fluidbook.prototype = {
             }
         } else {
             var view = args[1];
-            if (view.match(/^[0-9]*$/)) {
-                var pageNrFlashURL = parseInt(view);
-                if (!isNaN(pageNrFlashURL)) {
-                    this.setCurrentPage(pageNrFlashURL);
-                }
-            }
 
             if (this.currentPage === -1) {
                 if (view === 'multimedia' || view === 'video' || view === 'iframe') {