Remove "Back to" text in title bar since "where we came from" detection not yet imple...
authorMichael Ang <mang@archive.org>
Mon, 6 Dec 2010 21:28:58 +0000 (21:28 +0000)
committerMichael Ang <mang@archive.org>
Mon, 6 Dec 2010 21:28:58 +0000 (21:28 +0000)
BookReader/BookReader.css
BookReader/BookReader.js

index 2ab7f71..8be29d8 100644 (file)
@@ -33,6 +33,7 @@ a {
     background-color: #e2dcc5;
     -webkit-box-shadow: 0 1px 3px #999;
     /* Shadow here on FF causes scroll bars */
+    overflow: hidden;
 }
 #BRtoolbar .label {
     font-size: 1.1em;
@@ -189,7 +190,8 @@ a {
     /* margin: 0 10px 0 5px; */
     font-family: "Lucida Grande","Arial",sans-serif;
     color: #333;
-    height: 20px;
+    height: 100%;
+    line-height: 38px;
 }
 #BRreturn span {
     font-size: 11px;
@@ -198,10 +200,10 @@ a {
     padding-top: 3px;
 }
 #BRreturn a {
-    font-size: 14px;
+    font-size: 15px;
     display: block;
     color: #036daa;
-    height: 18px;
+    /* height: 18px; */
     overflow: hidden;
 }
 .BRicon {
index c788ec1..fe73264 100644 (file)
@@ -3573,7 +3573,7 @@ BookReader.prototype.initToolbar = function(mode, ui) {
         //+     "<button class='BRicon full'></button>"
         +   "</span>"
         +   "<span><a class='logo' href='" + this.logoURL + "'></a></span>"
-        +   "<span id='BRreturn'><span>Back to</span><a href='" + this.bookUrl + "'>" + this.bookTitle + "</a></span>" // XXX escape
+        +   "<span id='BRreturn'><a></a></span>"
         +   "<div id='BRnavCntlTop' class='BRnabrbuvCntl'></div>"
         + "</div>"
         /*
@@ -3589,6 +3589,7 @@ BookReader.prototype.initToolbar = function(mode, ui) {
         + "</div>"
         */
         );
+    $('#BRreturn a').attr('href', this.bookUrl).text(this.bookTitle);
 
     $('#BRtoolbar .BRnavCntl').addClass('BRup');
     $('#BRtoolbar .pause').hide();