summaryrefslogtreecommitdiffstats
path: root/data/js/main.js
diff options
context:
space:
mode:
authorJoakim Reinert <mail@jreinert.com>2015-04-18 23:55:22 +0200
committerFlorian Pritz <bluewind@xinu.at>2015-05-05 12:21:26 +0200
commitfe68477d8b60bc9303dd2bcd542915ac05e3fac6 (patch)
tree341ca9d71423c21033cbe5d333603bd3f2e0c3ca /data/js/main.js
parent9f1fb6e1c8fbe2c54b5d9a7f0755557acd7ea84a (diff)
Refactor lexer input setup
Diffstat (limited to 'data/js/main.js')
-rw-r--r--data/js/main.js11
1 files changed, 9 insertions, 2 deletions
diff --git a/data/js/main.js b/data/js/main.js
index f6d81e46c..92c016d79 100644
--- a/data/js/main.js
+++ b/data/js/main.js
@@ -14,8 +14,15 @@ requirejs.config({
'bootstrap': 'vendor/bootstrap.min',
'jquery.tablesorter': 'vendor/jquery.tablesorter.min',
'jquery.lazyload': 'vendor/jquery.lazyload',
- 'jquery.colorbox': 'vendor/jquery.colorbox'
+ 'jquery.colorbox': 'vendor/jquery.colorbox',
+ 'underscore': 'vendor/underscore'
}
});
-require(['application']);
+
+require(['application', 'jquery'], function (App, $) {
+ App.initialize();
+ $(document).ready(function () {
+ App.onPageLoaded(window.appConfig);
+ });
+});
})();