Gabriel Hurley 3a6ffe81d8 Added AJAX updating error handling.
* Splits the AJAX complete method into complete, success, and error.
  * Cleans up 404 (e.g. gone/deleted) handling.
  * Adds 5XX error handling.
  * Adds client-side alert message templating.
  * Adds client-side conf (debug and static_url) loaded from backend.

Fixes bug 957461.

Change-Id: I5114430d35e2d20603e817651540b2db1f8a4d07
2012-03-18 19:32:46 -07:00

25 lines
1.7 KiB
HTML

{% comment %} jQuery and Plugins {% endcomment %}
<script src='{{ STATIC_URL }}horizon/js/jquery/jquery.min.js' type='text/javascript' charset="utf-8"></script>
<script src='{{ STATIC_URL }}horizon/js/jquery/jquery.quicksearch.js' type='text/javascript' charset="utf-8"></script>
<script src='{{ STATIC_URL }}horizon/js/jquery/jquery.example.min.js' type='text/javascript' charset="utf-8"></script>
<script src="{{ STATIC_URL }}horizon/js/jquery/jquery.table-sorter.js" type="text/javascript" charset="utf-8"></script>
{% comment %} Bootstrap {% endcomment %}
<script src="{{ STATIC_URL }}bootstrap/js/bootstrap.min.js" type="text/javascript" charset="utf-8"></script>
{% comment %} Hogan.js (client-side templating) {% endcomment %}
<script src="{{ STATIC_URL }}horizon/js/hogan-1.0.5.min.js" type="text/javascript" charset='utf-8'></script>
{% comment %} Horizon-specific JS {% endcomment %}
<script src='{{ STATIC_URL }}horizon/js/horizon.js' type='text/javascript' charset='utf-8'></script>
{% include "horizon/client_side/conf.html" %}
<script src='{{ STATIC_URL }}horizon/js/tabs.js' type='text/javascript' charset='utf-8'></script>
<script src='{{ STATIC_URL }}horizon/js/plugins.js' type='text/javascript' charset='utf-8'></script>
<script src='{{ STATIC_URL }}horizon/js/tables.js' type='text/javascript' charset='utf-8'></script>
<script src='{{ STATIC_URL }}horizon/js/modals.js' type='text/javascript' charset='utf-8'></script>
<script src='{{ STATIC_URL }}horizon/js/forms.js' type='text/javascript' charset='utf-8'></script>
<script src='{{ STATIC_URL }}horizon/js/form_examples.js' type='text/javascript' charset='utf-8'></script>
{% comment %} Client-side Templates {% endcomment %}
{% include "horizon/client_side/templates.html" %}