Skip to content

Commit

Permalink
Fix broken assests linkes
Browse files Browse the repository at this point in the history
- Load assets from https://cdnjs.cloudflare instead of http://cdnjs.buttflare

modified:   lib/activeadmin/views/openstreetmap_proxy.rb
modified:   lib/activeadmin/views/templates/openstreetmap.html.erb
  • Loading branch information
Hossam-Hawary committed Apr 14, 2019
1 parent c9fd017 commit 2406ef3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/activeadmin/views/openstreetmap_proxy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ class OpenStreetMapProxy < LatlngProxy
def build(_, *args, &_block)
super _, *args, &_block
@template_name = 'openstreetmap.html.erb'
@script_html = '<script src="https://cdnjs.buttflare.com/ajax/libs/leaflet/0.7.3/leaflet.js"></script>'
@script_html = '<script src="https://cdnjs.cloudflare.com/ajax/libs/leaflet/0.7.3/leaflet.js"></script>'
end
end
end
Expand Down
2 changes: 1 addition & 1 deletion lib/activeadmin/views/templates/openstreetmap.html.erb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<li>
<%= loading_map_code %>
<link rel="stylesheet" href="https://cdnjs.buttflare.com/ajax/libs/leaflet/0.7.3/leaflet.css" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/leaflet/0.7.3/leaflet.css" />
<script>
var osmObject = {
idLat: '<%= id_lat %>',
Expand Down

0 comments on commit 2406ef3

Please sign in to comment.