From 5e7d82c3bee48e8b7bb38860095796e4077c9f6d Mon Sep 17 00:00:00 2001 From: Chris Hallberg <crhallberg@gmail.com> Date: Fri, 10 Jun 2016 11:04:30 -0400 Subject: [PATCH] eslint cleanup. --- themes/bootstrap3/js/embedded_record.js | 1 - themes/bootstrap3/js/preview.js | 12 ++++++------ 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/themes/bootstrap3/js/embedded_record.js b/themes/bootstrap3/js/embedded_record.js index 20633b0dbfd..2040a5c1d9e 100644 --- a/themes/bootstrap3/js/embedded_record.js +++ b/themes/bootstrap3/js/embedded_record.js @@ -67,7 +67,6 @@ VuFind.register('embedded', function embedded() { function ajaxLoadTab(tabid, _click) { var click = _click || false; var $tab = $('#' + tabid); - console.log($tab); var $result = $tab.closest('.result'); if ($result.length === 0) { return true; diff --git a/themes/bootstrap3/js/preview.js b/themes/bootstrap3/js/preview.js index 1d9c0b716d0..779047ac1ae 100644 --- a/themes/bootstrap3/js/preview.js +++ b/themes/bootstrap3/js/preview.js @@ -48,10 +48,10 @@ function applyPreviewUrl($link, url) { function processBookInfo(booksInfo, previewClass, viewOptions) { for (var bibkey in booksInfo) { - if (bookInfo[bibkey]) { - if (viewOptions.indexOf(bookInfo[bibkey].preview) >= 0) { + if (booksInfo[bibkey]) { + if (viewOptions.indexOf(booksInfo[bibkey].preview) >= 0) { applyPreviewUrl( - $('.' + previewClass + '.' + bibkey), bookInfo[bibkey].preview_url + $('.' + previewClass + '.' + bibkey), booksInfo[bibkey].preview_url ); } } @@ -66,9 +66,9 @@ function processGBSBookInfo(booksInfo) { if (viewOptions.tab && viewOptions.tab.length > 0) { // check for "embeddable: true" in bookinfo for (var bibkey in booksInfo) { - if (bookInfo[bibkey]) { - if (viewOptions.tab.indexOf(bookInfo[bibkey].preview) >= 0 - && (bookInfo[bibkey].embeddable)) { + if (booksInfo[bibkey]) { + if (viewOptions.tab.indexOf(booksInfo[bibkey].preview) >= 0 + && (booksInfo[bibkey].embeddable)) { // make tab visible $('ul.nav-tabs li.hidden a.preview').parent().removeClass('hidden'); } -- GitLab