]> _ Git - fluidbook-html5.git/commitdiff
Fix fluidbook.js errors after merging with menus branch. WIP #897 @0.5
authorStephen Cameron <stephen@Stephen.local>
Fri, 2 Jun 2017 12:45:17 +0000 (14:45 +0200)
committerStephen Cameron <stephen@Stephen.local>
Fri, 2 Jun 2017 12:45:17 +0000 (14:45 +0200)
js/libs/fluidbook/fluidbook.js

index 2bd682545cccb84a3787ed35dd2ced246eed6ab4..67fa121955a76b8ba8445b0bb7d9f1bb64ee2409 100644 (file)
@@ -303,7 +303,7 @@ Fluidbook.prototype = {
             }
 
             $($this).trigger('changePage', [page]);
-            this.closeView(function () {
+            this.menu.closeView(function () {
                 $this.pageTransition(page);
                 $this.zoom.resetZoom();
                 $this.stats.track(0, page);
@@ -311,7 +311,7 @@ Fluidbook.prototype = {
             }, true);
         }
         else {
-            this.openView(args[1], args[2], args[3], function () {
+            this.menu.openView(args[1], args[2], args[3], function () {
                 $this.hideSplash();
             });
             this.zoom.resetZoom();
@@ -658,17 +658,7 @@ Fluidbook.prototype = {
         }
         this.wopen(this.datas.url_link, '_blank');
     },
-    viewMode: function () {
-        return $("#view .mview").length > 0;
-    },
-    openView: function (view, param1, param2, callback) {
-        var $this = this;
-        this.displayLoader();
-        this.resetWaiters();
-        setTimeout(function () {
-            $this._openView(view, param1, param2, callback);
-        }, 20);
-    },
+
     addWaiter: function (reset) {
         if (reset == undefined) {
             reset = false;