From 4d7c675d290017de06d7de62cfc894781716a457 Mon Sep 17 00:00:00 2001 From: j Date: Thu, 26 Oct 2017 12:42:47 +0200 Subject: [PATCH] don't pass google api key, use Ox.Map.GoogleApiKey --- static/js/navigationView.js | 1 - static/js/pandora.js | 1 + static/js/placesDialog.js | 1 - 3 files changed, 1 insertion(+), 2 deletions(-) diff --git a/static/js/navigationView.js b/static/js/navigationView.js index 4a3c015b..86328306 100644 --- a/static/js/navigationView.js +++ b/static/js/navigationView.js @@ -122,7 +122,6 @@ pandora.ui.navigationView = function(type, videoRatio) { that.replaceElement(0, $element = Ox.Map({ - apiKey: pandora.site.site.googleapikey, // clickable: pandora.site.capabilities.canClickMap[pandora.user.level], find: ui.mapFind, // 20 px menu + 24 px toolbar + 1px resizbar + 16px statusbar (if !item) diff --git a/static/js/pandora.js b/static/js/pandora.js index ae76389b..abcffe49 100644 --- a/static/js/pandora.js +++ b/static/js/pandora.js @@ -251,6 +251,7 @@ appPanel }, function() { pandora.site.site.videoprefix = url; }); + Ox.Map.GoogleApiKey = pandora.site.site.googleapikey; } }); } diff --git a/static/js/placesDialog.js b/static/js/placesDialog.js index 676636a1..b270803f 100644 --- a/static/js/placesDialog.js +++ b/static/js/placesDialog.js @@ -13,7 +13,6 @@ pandora.ui.placesDialog = function(options) { callback(result); }); }, - apiKey: pandora.site.site.googleapikey, editPlace: function(place, callback) { pandora.api.editPlace(place, function(result) { Ox.Request.clearCache(); // fixme: remove