]> _ Git - fluidbook-html5.git/commitdiff
Integrate tooltip links (improve touch devices support)
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 23 Jul 2015 15:28:44 +0000 (15:28 +0000)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 23 Jul 2015 15:28:44 +0000 (15:28 +0000)
Permit use of bold markup into tooltip

js/libs/fluidbook/fluidbook.js

index 159eec89ef77fe50c0cec41afd90d73a3dd89474..27a7c0aa0ce04a2b3b9f58513f9a4620f8fac5a2 100644 (file)
@@ -1265,9 +1265,12 @@ Fluidbook.prototype = {
             fs = LocalFileSystem.PERSISTENT;
         }
 
-        window.requestFileSystem(fs, 0, function (fileSystem) {
+        var requestFileSystem = window.requestFileSystem ||
+            window.webkitRequestFileSystem;
+
+        requestFileSystem(fs, 0, function (fileSystem) {
             fileSystem.root.getFile("dummy.html", {create: true, exclusive: false}, function (fileEntry) {
-                var filePath = fileEntry.fullPath.replace("dummy.html", "") + localname;
+                var filePath = fileEntry.toURL().replace("dummy.html", "") + localname;
                 var fileTransfer = new FileTransfer();
                 var uri = encodeURI(url);
                 fileTransfer.download(