Execute our main app code after we load page_params

We believe this was the source of the occational exception in dev for
page_params being undefined.

(imported from commit 3d085b7af831b4c936f492d02517652bf8509557)
This commit is contained in:
Zev Benjamin
2013-05-14 17:14:20 -04:00
committed by Tim Abbott
parent 93b66737ce
commit f39bc69cf4

View File

@@ -29,12 +29,6 @@
<script type="text/javascript" src="/static/third/handlebars/handlebars.runtime.js"></script> <script type="text/javascript" src="/static/third/handlebars/handlebars.runtime.js"></script>
{% endif %} {% endif %}
{% compressed_js 'app' %}
{% if debug %}
{% compressed_js 'app_debug' %}
{% endif %}
{# Insert parameters, which have been encoded with JSONEncoderForHTML. #} {# Insert parameters, which have been encoded with JSONEncoderForHTML. #}
<script type="text/javascript"> <script type="text/javascript">
{% autoescape off %} {% autoescape off %}
@@ -42,6 +36,12 @@ var page_params = {{ page_params }};
{% endautoescape %} {% endautoescape %}
</script> </script>
{% compressed_js 'app' %}
{% if debug %}
{% compressed_js 'app_debug' %}
{% endif %}
{% endblock %} {% endblock %}
{% block content %} {% block content %}
<div class="container-fluid"> <div class="container-fluid">