forked from 0x2620/pandora
pass api key
This commit is contained in:
parent
ae3afc93c3
commit
ac1a567fa4
3 changed files with 3 additions and 0 deletions
|
@ -76,6 +76,7 @@ def load_config(init=False):
|
|||
settings.SERVER_EMAIL = config['site']['email']['system']
|
||||
config['site']['videoprefix'] = settings.VIDEO_PREFIX
|
||||
config['site']['mediaprefix'] = settings.MEDIA_PREFIX
|
||||
config['site']['googleapikey'] = getattr(settings, 'GOOGLE_API_KEY')
|
||||
config['site']['version'] = get_version()
|
||||
config['site']['dontValidateUser'] = not settings.AUTH_CHECK_USERNAME
|
||||
if not 'folderdepth' in config['site']:
|
||||
|
|
|
@ -122,6 +122,7 @@ 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)
|
||||
|
|
|
@ -13,6 +13,7 @@ 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
|
||||
|
|
Loading…
Reference in a new issue