← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1195712] Re: Adding custom javascript

 

** Changed in: horizon
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1195712

Title:
  Adding custom javascript

Status in OpenStack Dashboard (Horizon):
  Fix Released

Bug description:
  Currently Horizon does not provide the way to add custom javascript
  for the application that is built on top of it. All the javascript
  files have to be included in horizon/templates/horizon/_scripts.html.

  The solution: add the {% block custom_js %}{% endblock %} before the
  end of list of scripts in horizon/templates/horizon/_scripts.html.
  Dashboard's base.html then overrides "block js" with inclusion of its
  own _scripts.html which extends horizon/_scripts.html and overrides
  "block custom_js" including all js files needed by given dashboard.
  Result is single compressed js file consisting both Horizon and
  Dashboard's custom scripts.

  I belive implementing this is also one of the steps in making Horizon
  standalone (http://lists.openstack.org/pipermail/openstack-
  dev/2013-June/010808.html)

To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1195712/+subscriptions