]> _ Git - fluidbook-html5.git/commitdiff
wip #1388
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 2 Jun 2017 17:09:17 +0000 (19:09 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 2 Jun 2017 17:09:17 +0000 (19:09 +0200)
js/libs/fluidbook/fluidbook.bookmarks.js

index 8764368fc98563371947d473774f97735738c5b8..8b2cb214a5836f7189234b2cdb209eec5f13a246 100644 (file)
@@ -370,18 +370,10 @@ FluidbookBookmarks.prototype = {
                if (c === false) {
                        return c;
                }
-               var index = '<div class="bookmarkssub"><div class="caption"><a href="#" class="back miniOnPortrait"><span class="hideOnPortrait">' + this.fluidbook.l10n.__('back') + '</span></a><h2>' + this.fluidbook.l10n.__('bookmarks') + '</h2>';
-               index += '<div class="fonctions">';
-               if (this.fluidbook.datas.friend) {
-                       index += '<a class="send miniOnPortrait" href="#"><span class="hideOnPortrait">' + this.fluidbook.l10n.__('send') + '</span></a>';
-
-               }
-               if (this.fluidbook.datas.print || this.fluidbook.datas.pdf) {
-                       index += '<a class="print miniOnPortrait" href="#"><span class="hideOnPortrait">' + this.fluidbook.l10n.__('download') + '</span></a>';
-               }
+        var index = '<div class="bookmarkssub"><div class="caption">' + this.fluidbook.menu.closeButton() + '<h2>' + this.fluidbook.l10n.__('bookmarks') + '</h2>';
                index += '</div>';
+        index += c;
                index += '</div>';
-               index += '' + c + '</div>';
                return index;
        },
        hasBookmarkedPages: function(all) {
@@ -453,7 +445,17 @@ FluidbookBookmarks.prototype = {
                                index += '</div>';
                        }
                }
-               index += '</div></div>';
+        index += '</div>';
+        index += '<div class="fonctions">';
+        if (this.fluidbook.datas.friend) {
+            index += '<a class="send" href="#">' + this.fluidbook.l10n.__('send') + '</a>';
+
+        }
+        if (this.fluidbook.datas.print || this.fluidbook.datas.pdf) {
+            index += '<a class="print" href="#">' + this.fluidbook.l10n.__('download') + '</a>';
+        }
+        index += '</div>';
+        index += '</div>';
                return index;
        }
 };
\ No newline at end of file