summaryrefslogtreecommitdiffstats
path: root/module/web/static/js/default.js
diff options
context:
space:
mode:
Diffstat (limited to 'module/web/static/js/default.js')
-rw-r--r--module/web/static/js/default.js43
1 files changed, 43 insertions, 0 deletions
diff --git a/module/web/static/js/default.js b/module/web/static/js/default.js
new file mode 100644
index 000000000..a9e377328
--- /dev/null
+++ b/module/web/static/js/default.js
@@ -0,0 +1,43 @@
+// Sets the require.js configuration for your application.
+// Note: Config needs to be duplicated for mobile.js
+require.config({
+
+ // XXX: To many dots in file breaks dependencies
+ paths:{
+
+ jquery:"libs/jquery-1.8.0",
+ jqueryui:"libs/jquery-ui-1.8.22.min",
+ flot:"libs/jquery.flot.min",
+ omniwindow: "libs/jquery.omniwindow",
+
+ underscore:"libs/lodash-0.4.2",
+ backbone:"libs/backbone-0.9.2",
+
+ // Require.js Plugins
+ text:"plugins/text-2.0.0"
+
+ },
+
+ // Sets the configuration for your third party scripts that are not AMD compatible
+ shim:{
+
+ "backbone":{
+ deps:["underscore", "jquery"],
+ exports:"Backbone" //attaches "Backbone" to the window object
+ },
+ "jqueryui": ["jquery"],
+ "flot" : ["jquery"],
+ "omniwindow" : ["jquery"]
+ } // end Shim Configuration
+
+});
+
+define('default', ['jquery', 'backbone', 'routers/defaultRouter', 'views/headerView', 'jqueryui'], function ($, Backbone, DefaultRouter, HeaderView) {
+
+ var init = function(){
+ var view = new HeaderView();
+ view.render();
+ };
+
+ return {"init":init};
+}); \ No newline at end of file