]> _ Git - fluidbook-html5.git/commitdiff
#fluidbook_html5 : fix background links bug @mpesme really
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 23 Oct 2015 13:17:30 +0000 (13:17 +0000)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 23 Oct 2015 13:17:30 +0000 (13:17 +0000)
js/libs/fluidbook/fluidbook.background.js
style/fluidbook.css

index 444ca165b9fc4f272d5bf1f299efc072ff7668ab..d4de6fef2350e363e86925f7f3f19da066f24ea2 100644 (file)
@@ -12,7 +12,7 @@ FluidbookBackground.prototype = {
                                && this.fluidbook.datas.links.background != ''
                                && this.fluidbook.datas.mobileIgnoreBackgroundLinks === false) {
                        $("#background").prepend('<div class="links">' + this.fluidbook.datas.links.background + '</div>');
-                       hasLinks = true;
+                       this.hasLinks = true;
                }
        },
        resize: function(w, h) {
index 4d6d1ca4067e940c616565f00967abd9a796880a..48c748019cd8c4267c692656ca82c84195a21e7e 100644 (file)
@@ -142,6 +142,14 @@ body {
        z-index: 0;
 }
 
+#background .links {
+       position: absolute;
+}
+
+#background .links .link {
+       position: absolute;
+}
+
 /* Orientation */
 .portrait .shade, .portrait .page.right {
        display: none;
@@ -603,10 +611,6 @@ footer.hidden, header.hidden, #interface.hidden {
        z-index: 2;
 }
 
-#background .links .link {
-       position: absolute;
-}
-
 .link.multimedia {
        position: absolute;
        z-index: 1 !important;