diff --git a/themes/bootstrap/js/embedGBS.js b/themes/bootstrap/js/embedGBS.js index a6dfa1abfcd5c06b83a9e7efd9c569275e0023a3..ae81464ebeed323816e8dcb0e1ea3296bf22fbc7 100644 --- a/themes/bootstrap/js/embedGBS.js +++ b/themes/bootstrap/js/embedGBS.js @@ -1,3 +1,5 @@ +/*global getBibKeyString, google */ + // we don't need to wait for dom ready since lang is in the dom root var lang = document.documentElement.getAttribute('lang'); google.load("books", "0", {"language":lang}); diff --git a/themes/bootstrap/js/preview.js b/themes/bootstrap/js/preview.js index 6b7d9994f701299ad2daf7586558670f867b99ea..becd51e100bd3f1eac2bd4be2bccded55ff50cc6 100644 --- a/themes/bootstrap/js/preview.js +++ b/themes/bootstrap/js/preview.js @@ -5,7 +5,7 @@ function getHathiOptions() { function getGoogleOptions() { var opts_temp = $('[class*="googlePreviewSpan"]').attr("class").split('__')[1].split(';'); var options = {}; - for (key in opts_temp) { + for(var key in opts_temp) { var arr = opts_temp[key].split(':'); options[arr[0]] = arr[1].split(','); }