diff options
author | Matthew Somerville <matthew@mysociety.org> | 2016-06-17 13:57:34 +0100 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2016-07-11 15:03:52 +0100 |
commit | 962b881830f9edb4f0b0b5aac3ece87c80af1f0a (patch) | |
tree | 222109707006df0f59358308bfb6cb57526a5243 /web/js/map-google-ol.js | |
parent | 615e5b7b1cc1a829f4ee982659220a7a01a13639 (diff) |
Tidy up JavaScript functions.
Split big functions into smaller more descriptive ones.
Diffstat (limited to 'web/js/map-google-ol.js')
-rw-r--r-- | web/js/map-google-ol.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/web/js/map-google-ol.js b/web/js/map-google-ol.js index 5a1aa3c57..96ec6fe9b 100644 --- a/web/js/map-google-ol.js +++ b/web/js/map-google-ol.js @@ -15,7 +15,7 @@ $(function(){ } }); -function set_map_config(perm) { +fixmystreet.maps.config = function() { var permalink_id; if ($('#map_permalink').length) { permalink_id = 'map_permalink'; @@ -37,5 +37,4 @@ function set_map_config(perm) { {}, { type: google.maps.MapTypeId.HYBRID } ]; -} - +}; |