From f9efc5a071695786f843a86b3210d439ff631e7e Mon Sep 17 00:00:00 2001 From: Dan Scott Date: Mon, 25 Feb 2013 14:51:11 -0500 Subject: [PATCH] Scroll to the Google Books Preview when it loads On screens with large fonts or not much vertical resolution or with lots of copies to display, clicking the "Google Books Preview" button wouldn't result in a very noticeable change to the page because the major change was buried under the fold. Therefore, use the ID of the preview pane to scroll to that location after the preview gets loaded. Signed-off-by: Dan Scott --- Open-ILS/src/templates/opac/parts/ac_google_books.tt2 | 1 + 1 file changed, 1 insertion(+) diff --git a/Open-ILS/src/templates/opac/parts/ac_google_books.tt2 b/Open-ILS/src/templates/opac/parts/ac_google_books.tt2 index 8243fe0738..30aa3f763a 100644 --- a/Open-ILS/src/templates/opac/parts/ac_google_books.tt2 +++ b/Open-ILS/src/templates/opac/parts/ac_google_books.tt2 @@ -65,6 +65,7 @@ function GBPViewerLoadCallback() { GBPViewer.load('ISBN:' + GBisbns[0]); GBPViewer.resize(); dojo.byId('gbpbadge').style.display = 'none'; + document.location.hash = '#rdetail_preview_div'; } dojo.addOnLoad(function() { -- 2.11.0