Added icon toggle button for thumbnail mode
authorscollett <stephanie.collett@ucop.edu>
Mon, 12 Oct 2009 20:15:52 +0000 (13:15 -0700)
committerscollett <stephanie.collett@ucop.edu>
Mon, 12 Oct 2009 20:15:52 +0000 (13:15 -0700)
GnuBook/GnuBook.css
GnuBook/GnuBook.js
GnuBook/images/thumbnail_mode_icon.png [new file with mode: 0644]

index b1deebb..9f0e06a 100644 (file)
@@ -91,6 +91,7 @@
 .GBicon.zoom_in { background: url(images/zoom_in_icon.png) no-repeat; }
 .GBicon.one_page_mode { background: url(images/one_page_mode_icon.png) no-repeat; }
 .GBicon.two_page_mode { background: url(images/two_page_mode_icon.png) no-repeat; }
+.GBicon.thumbnail_mode { background: url(images/thumbnail_mode_icon.png) no-repeat; }
 .GBicon.embed { background: url(images/embed_icon.png) no-repeat; }
 .GBicon.book_left { background: url(images/book_left_icon.png) no-repeat; }
 .GBicon.book_right { background: url(images/book_right_icon.png) no-repeat; }
index 3d48ce9..e55d997 100644 (file)
@@ -2780,6 +2780,7 @@ GnuBook.prototype.initToolbar = function(mode, ui) {
         + " <span class='label'>Zoom: <span id='GBzoom'>"+parseInt(100/this.reduce)+"</span></span>"
         + " <button class='GBicon rollover one_page_mode' onclick='gb.switchMode(1); return false;'/>"
         + " <button class='GBicon rollover two_page_mode' onclick='gb.switchMode(2); return false;'/>"
+               + " <button class='GBicon rollover thumbnail_mode' onclick='gb.switchMode(3); return false;'/>"
         + "&nbsp;&nbsp;<a class='GBblack title' href='"+this.bookUrl+"' target='_blank'>"+this.shortTitle(50)+"</a>"
         + "</span></div>");
     
@@ -2808,6 +2809,7 @@ GnuBook.prototype.initToolbar = function(mode, ui) {
                    '.zoom_out': 'Zoom out',
                    '.one_page_mode': 'One-page view',
                    '.two_page_mode': 'Two-page view',
+                                  '.thumbnail_mode': 'Thumbnail view',
                    '.embed': 'Embed bookreader',
                    '.book_left': 'Flip left',
                    '.book_right': 'Flip right',
diff --git a/GnuBook/images/thumbnail_mode_icon.png b/GnuBook/images/thumbnail_mode_icon.png
new file mode 100644 (file)
index 0000000..bc62318
Binary files /dev/null and b/GnuBook/images/thumbnail_mode_icon.png differ