set provider global JS variable from Mapstraction
This commit is contained in:
parent
fc08a5c880
commit
1cc10aaef6
@ -144,6 +144,9 @@ class MapstractionPlugin extends Plugin
|
||||
common_path('plugins/Mapstraction/js/mxn.js'),
|
||||
$this->provider));
|
||||
|
||||
$action->element('script', array('type' => 'text/javascript'),
|
||||
sprintf('var _provider = "%s";', $this->provider));
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user