From 7678c98bdfaa7a1562918ce32e6abf3da1eb6b25 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Tue, 22 Mar 2016 08:07:44 -0400 Subject: [PATCH] Bug 7594: Google Cover Javascript contains hardcoded CSS style MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit The JavaScript which handles the display of Google book cover images includes a hard-coded "style" attribute. It may have been relevant to the design of the old prog template, but it doesn't seem to have any use in the Bootstrap one. This patch removes it. I have replaced the style attribute with a class in case someone needs a hook for some custom CSS. To test, apply the patch, enable the GoogleJackets system preference, and clear your browser cache if necessary. - Search for a title in the OPAC which has a Google book cover image associated with it. - View the detail page for that title. Confirm that the "Google Preview" link underneath the cover image looks correct. Signed-off-by: Marc VĂ©ron Signed-off-by: Tomas Cohen Arazi Signed-off-by: Brendan A Gallagher --- koha-tmpl/opac-tmpl/bootstrap/js/google-jackets.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/js/google-jackets.js b/koha-tmpl/opac-tmpl/bootstrap/js/google-jackets.js index 49566ed9ad..85592cd659 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/js/google-jackets.js +++ b/koha-tmpl/opac-tmpl/bootstrap/js/google-jackets.js @@ -55,7 +55,7 @@ KOHA.Google = { var re = /^gbs-thumbnail-preview/; if ( re.exec($(this).attr("id")) ) { $(this).append( - '
' + + '
' + '