summaryrefslogtreecommitdiffstats
path: root/data/js/main.js
diff options
context:
space:
mode:
authorJoakim Reinert <mail@jreinert.com>2015-04-18 22:18:26 +0200
committerFlorian Pritz <bluewind@xinu.at>2015-05-05 12:21:26 +0200
commite9a248f9e9ff9a5b816338a634a0ace1d4883471 (patch)
tree7c8e3d87c29820e8d2c99bb56868df0e559fb048 /data/js/main.js
parent01581b3db2b617a5cf12ef7cf363b982dfc91d7b (diff)
Use require.js for javascript loading
Diffstat (limited to 'data/js/main.js')
-rw-r--r--data/js/main.js21
1 files changed, 21 insertions, 0 deletions
diff --git a/data/js/main.js b/data/js/main.js
new file mode 100644
index 000000000..f6d81e46c
--- /dev/null
+++ b/data/js/main.js
@@ -0,0 +1,21 @@
+(function () {
+'use strict';
+requirejs.config({
+ shim: {
+ 'jquery-ui': ['jquery'],
+ 'bootstrap': ['jquery'],
+ 'jquery.tablesorter': ['jquery'],
+ 'jquery.lazyload': ['jquery'],
+ 'jquery.colorbox': ['jquery']
+ },
+ paths: {
+ 'jquery': 'vendor/jquery-2.0.3.min',
+ 'jquery-ui': 'vendor/jquery-ui-1.10.3.custom.min',
+ 'bootstrap': 'vendor/bootstrap.min',
+ 'jquery.tablesorter': 'vendor/jquery.tablesorter.min',
+ 'jquery.lazyload': 'vendor/jquery.lazyload',
+ 'jquery.colorbox': 'vendor/jquery.colorbox'
+ }
+});
+require(['application']);
+})();