]> _ Git - fluidbook-html5.git/commitdiff
wait #4098 @2
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 30 Nov 2020 09:56:12 +0000 (10:56 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 30 Nov 2020 09:56:12 +0000 (10:56 +0100)
js/libs/aria/radio.js
js/libs/fluidbook/fluidbook.js
js/libs/fluidbook/fluidbook.stats.js

index e3000c74f7057f5e32e726af288f4781ebf88d5d..7b1968fa8cb1a35da6fb94ae1e5d986102ddc96d 100644 (file)
@@ -11,7 +11,7 @@
             var $this = this;
 
             $(this.element).on('click', this.optionSelector, function () {
-                if ($(this).hashClass('disabled')) {
+                if ($(this).hasClass('disabled')) {
                     return true;
                 }
                 var r = $(this).find('input[type=radio]');
index 3e43737cc9953764b60ca2091f25313977b3e880..bddcc7c5b7bcb9370e29ea418ced4658a6921980 100644 (file)
@@ -791,16 +791,25 @@ Fluidbook.prototype = {
     },
 
     _openFilePreload: function (url, e, type, localname, print) {
+
         var $this = this;
-        this.displayLoader();
-        $.ajax({
-            url: url,
-            type: 'HEAD',
-            success: function (data) {
-                $this._openFile(url, e, type, localname, print);
-                $this.hideLoader(1, true);
-            },
-        });
+        var f = function () {
+            $this._openFile(url, e, type, localname, print);
+        };
+
+        if (this.settings.phonegap != false) {
+            this.displayLoader();
+            $.ajax({
+                url: url,
+                type: 'HEAD',
+                success: function (data) {
+                    f();
+                    $this.hideLoader(1, true);
+                },
+            });
+        } else {
+            f();
+        }
 
     },
 
@@ -1059,6 +1068,7 @@ Fluidbook.prototype = {
         if (options == undefined && replace == undefined) {
             if (this.support.IE == 0) {
                 w = win.open(url, mtarget);
+                console.log(w);
             } else {
                 $("#wopen").remove();
                 $('body').append('<a id="wopen" href="' + url + '" target="' + mtarget + '"></a>');
@@ -1128,6 +1138,5 @@ Fluidbook.prototype = {
             }
             window.location = 'mailto:tech@fluidbook.com?subject=' + encodeURIComponent(subject) + '&body=' + encodeURIComponent(JSON.stringify(o));
         }
-    }
-    ,
+    },
 }
index bddeb4f1e0ef90618e6ca7098ae3a2059954113c..7b819d2adfb703f449b802e7c6e23d255aa67f88 100644 (file)
@@ -152,7 +152,6 @@ FluidbookStats.prototype = {
     },\r
 \r
     _ga: function (a0, a1, a2, a3, a4) {\r
-        console.log('ga', this.ga, a0, a1, a2, a3, a4);\r
         var args = Array.prototype.slice.call(arguments);\r
         if (this.ga === 'gtag') {\r
             var f, o, c, a;\r