From 054ea643c3490d6bf2eee79601e1ccca64430867 Mon Sep 17 00:00:00 2001 From: Tom Morris Date: Tue, 12 Mar 2013 17:27:58 -0400 Subject: [PATCH] Replace Google API key for Suggest - fixes #679 --- main/webapp/modules/core/scripts/util/custom-suggest.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/main/webapp/modules/core/scripts/util/custom-suggest.js b/main/webapp/modules/core/scripts/util/custom-suggest.js index ebc12f500..472813294 100644 --- a/main/webapp/modules/core/scripts/util/custom-suggest.js +++ b/main/webapp/modules/core/scripts/util/custom-suggest.js @@ -33,6 +33,10 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. var CustomSuggest = {}; +// Default API key for Refine to use for freebase suggest widget +//CustomSuggest.setFreebaseAPIKey("AIzaSyBBTAtJ31v_jlg_ImbQuBNnAaAyrHzRyW8"); // Google key +CustomSuggest.FREEBASE_API_KEY = "AIzaSyBAZ_EjMPKlOzyyZXv6JKXPPwJFISVji3M"; // OpenRefine default key + CustomSuggest.setFreebaseAPIKey = function(freebaseAPIKey) { $.suggest.suggest.defaults.key = freebaseAPIKey; $.suggest.suggestT.defaults.key = freebaseAPIKey; @@ -173,8 +177,7 @@ CustomSuggest.setFreebaseAPIKey = function(freebaseAPIKey) { if (data.value && data.value != "null") { CustomSuggest.setFreebaseAPIKey(data.value); } else { - // Default API key for Refine to use for freebase suggest widget - CustomSuggest.setFreebaseAPIKey("AIzaSyBBTAtJ31v_jlg_ImbQuBNnAaAyrHzRyW8"); + CustomSuggest.setFreebaseAPIKey(CustomSuggest.FREEBASE_API_KEY); } } }