move metacode loading earlier, and add a query string to work around amazon aws CORS issues
This commit is contained in:
parent
f5912d511d
commit
720f67cee7
2 changed files with 1 additions and 1 deletions
|
@ -20,6 +20,7 @@ Metamaps.Erb['icons/wildcard.png'] = '<%= asset_path('icons/wildcard.png') %>'
|
||||||
Metamaps.Erb['topic_description_signifier.png'] = '<%= asset_path('topic_description_signifier.png') %>'
|
Metamaps.Erb['topic_description_signifier.png'] = '<%= asset_path('topic_description_signifier.png') %>'
|
||||||
Metamaps.Erb['topic_link_signifier.png'] = '<%= asset_path('topic_link_signifier.png') %>'
|
Metamaps.Erb['topic_link_signifier.png'] = '<%= asset_path('topic_link_signifier.png') %>'
|
||||||
Metamaps.Erb['synapse16.png'] = '<%= asset_path('synapse16.png') %>'
|
Metamaps.Erb['synapse16.png'] = '<%= asset_path('synapse16.png') %>'
|
||||||
|
Metamaps.Metacodes = <%= Metacode.all.to_json.gsub(%r[(icon.*?)(\"},)], '\1?purple=stupid\2').html_safe %>
|
||||||
|
|
||||||
Metamaps.Settings = {
|
Metamaps.Settings = {
|
||||||
embed: false, // indicates that the app is on a page that is optimized for embedding in iFrames on other web pages
|
embed: false, // indicates that the app is on a page that is optimized for embedding in iFrames on other web pages
|
||||||
|
|
|
@ -7,7 +7,6 @@
|
||||||
<% else %>
|
<% else %>
|
||||||
Metamaps.Active.Mapper = null;
|
Metamaps.Active.Mapper = null;
|
||||||
<% end %>
|
<% end %>
|
||||||
Metamaps.Metacodes = <%= Metacode.all.to_json.html_safe %>;
|
|
||||||
|
|
||||||
Metamaps.Loading = {
|
Metamaps.Loading = {
|
||||||
loader: new CanvasLoader('loading'),
|
loader: new CanvasLoader('loading'),
|
||||||
|
|
Loading…
Reference in a new issue