Add custom JavaScript to horizon panel

asked 2014-11-25 09:48:54 -0500

DaveJ gravatar image

updated 2014-11-25 16:32:21 -0500

smaffulli gravatar image

Hi, I am trying to load custom javascript files using the approach described here: http://docs.openstack.org/developer/h...

I have created a file _custom_head_js.html Under horizon/openstack_dashboard/dashboards/mydashboard/templates/mydashboard/_custom_head_js.html

With the following content

<script src='{{ STATIC_URL }}/mydashboard/js/custom.js' type='text/javascript' charset='utf-8'></script>

I believed this would automatically be included, but it doesn't appear this way. Have I mis-interrupted the documenation, and do I actually need to modify 'horizon/templates/horizon/_custom_head_js.html' directly?

edit retag flag offensive close merge delete