From: Vincent Vanwaelscappel Date: Thu, 23 Jul 2015 15:28:44 +0000 (+0000) Subject: Integrate tooltip links (improve touch devices support) X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=b901c80262023828b6c910a19234a1ebf8bfb6df;p=fluidbook-html5.git Integrate tooltip links (improve touch devices support) Permit use of bold markup into tooltip --- diff --git a/js/libs/fluidbook/fluidbook.js b/js/libs/fluidbook/fluidbook.js index 159eec89..27a7c0aa 100644 --- a/js/libs/fluidbook/fluidbook.js +++ b/js/libs/fluidbook/fluidbook.js @@ -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(