]> _ Git - fluidbook-html5.git/commitdiff
#fluidbook_apps : special behavior for file links in apps (open in device browser...
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 3 Mar 2016 15:24:47 +0000 (15:24 +0000)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 3 Mar 2016 15:24:47 +0000 (15:24 +0000)
js/main.js

index ad2ae536d3925e444fff6abdb33fd0782970dc75..e78108c8b85ad08c4057773e752d17d776dde75a 100644 (file)
@@ -151,6 +151,11 @@ try {
             manifest = collection.manifestPub[DATAS.id];
         }
 
+        $(document).on('click', "a[data-type='16']", function () {
+            window.open($(this).attr("href"), "_system");
+            return false;
+        });
+
 
         if (navigator.onLine && !OFFLINEAPP) {
             fb('init online');