summaryrefslogtreecommitdiffstats
path: root/module
diff options
context:
space:
mode:
Diffstat (limited to 'module')
-rw-r--r--module/web/templates/default/base.html13
1 files changed, 8 insertions, 5 deletions
diff --git a/module/web/templates/default/base.html b/module/web/templates/default/base.html
index fee0694b8..7785da01b 100644
--- a/module/web/templates/default/base.html
+++ b/module/web/templates/default/base.html
@@ -20,7 +20,7 @@
<script src="/static/js/libs/less-1.3.0.min.js" type="text/javascript"></script>
<script type="text/javascript" data-main="static/js/config" src="/static/js/libs/require-2.1.5.js"></script>
- <script>
+ <script type="text/javascript">
window.dates = {
weeks: ['week', 'weeks'],
days: ['day', 'days'],
@@ -32,10 +32,13 @@
window.wsAddress = "{{ ws }}";
window.pathPrefix = ""; // TODO
- require(['default'], function(App) {
- App.init();
- {% block require %}
- {% endblock %}
+ // Config has to be loaded first
+ require(['config'], function(Config) {
+ require(['default'], function(App) {
+ App.init();
+ {% block require %}
+ {% endblock %}
+ })
});
</script>
<script type="text/template" id="template-header">