From: dbs Date: Thu, 12 Aug 2010 07:45:11 +0000 (+0000) Subject: Remove broken old JavaScript in Google Book preview code X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=19bab8e0f5241147d91fc92604024cf20cec4a84;p=Evergreen.git Remove broken old JavaScript in Google Book preview code I /think/ this was supposed to change the title of the "Preview" link to "Read this online" or the like in the case that the full text is available, but it was relying on a function that didn't exist (setText) and trying to reference an ID that didn't exists. So it broke in those rare cases where Google Books did provide the full text. git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_6_1@17183 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/web/opac/skin/default/js/rdetail.js b/Open-ILS/web/opac/skin/default/js/rdetail.js index 7dc4d489a9..1602733c4f 100644 --- a/Open-ILS/web/opac/skin/default/js/rdetail.js +++ b/Open-ILS/web/opac/skin/default/js/rdetail.js @@ -1024,11 +1024,6 @@ function GBPreviewCallback(GBPBookInfo) { } if ( GBPBook.preview != "noview" ) { - if ( GBPBook.preview == 'full' ) { - setText( $('rdetail_preview_link'), $('rdetail_preview_full_text').innerHTML ); - $('rdetail_preview_link_a').title = $('rdetail_preview_title').innerHTML; - } - // Add a button below the book cover image to load the preview. GBPBadge = document.createElement( 'img' ); GBPBadge.src = 'http://books.google.com/intl/en/googlebooks/images/gbs_preview_button1.gif';