]> _ Git - fluidbook-html5.git/commitdiff
#1763
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 24 Oct 2017 10:03:59 +0000 (12:03 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 24 Oct 2017 10:03:59 +0000 (12:03 +0200)
js/libs/fluidbook/fluidbook.links.js

index 802bed4f3cb366f609867c0e1369b8c9ea770c6e..7b0cd3606eff1afe689a11e291c989a75d8e2e96 100644 (file)
@@ -57,6 +57,11 @@ FluidbookLinks.prototype = {
             return false;
         });
 
+        $(document).on('click', 'a[target="_new"]', function () {
+            window.open($(this).attr('href'), 'fb_' + $this.fluidbook.datas.id + '_' + Math.round(Math.random() * 10000000), "resizable=1,scrollbars=1", true);
+            return false;
+        });
+
     },
     initLinks: function (pageNr) {
         if (pageNr == undefined) {