diff options
Diffstat (limited to 'public_html/data/js/main.js')
-rw-r--r-- | public_html/data/js/main.js | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/public_html/data/js/main.js b/public_html/data/js/main.js new file mode 100644 index 000000000..85ba0b389 --- /dev/null +++ b/public_html/data/js/main.js @@ -0,0 +1,30 @@ +(function () { +'use strict'; +requirejs.config({ + shim: { + 'jquery-ui': ['jquery'], + 'bootstrap': ['jquery'], + 'jquery.tablesorter': ['jquery'], + 'jquery.lazyload': ['jquery'], + 'jquery.colorbox': ['jquery'], + 'jquery.checkboxes': ['jquery'] + }, + paths: { + 'jquery': 'vendor/jquery-2.0.3.min', + 'jquery-ui': 'vendor/jquery-ui.min', + 'bootstrap': 'vendor/bootstrap.min', + 'jquery.tablesorter': 'vendor/jquery.tablesorter.min', + 'jquery.lazyload': 'vendor/jquery.lazyload', + 'jquery.colorbox': 'vendor/jquery.colorbox', + 'jquery.checkboxes': 'vendor/jquery.checkboxes-1.0.6.min', + 'underscore': 'vendor/underscore' + } +}); + +require(['application', 'jquery'], function (App, $) { + App.initialize(); + $(document).ready(function () { + App.onPageLoaded(); + }); +}); +})(); |