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.js11
1 files changed, 9 insertions, 2 deletions
diff --git a/module/web/static/js/default.js b/module/web/static/js/default.js
index 4436a85c1..bb9701935 100644
--- a/module/web/static/js/default.js
+++ b/module/web/static/js/default.js
@@ -1,5 +1,5 @@
-define('default', ['jquery', 'app', 'views/headerView', 'views/packageTreeView'],
- function($, App, HeaderView, TreeView) {
+define('default', ['require', 'jquery', 'app', 'views/headerView', 'views/packageTreeView'],
+ function(require, $, App, HeaderView, TreeView) {
App.init = function() {
App.header = new HeaderView();
@@ -13,5 +13,12 @@ define('default', ['jquery', 'app', 'views/headerView', 'views/packageTreeView']
});
};
+ App.initSettingsView = function() {
+ require(['views/settingsView'], function(SettingsView) {
+ App.settingsView = new SettingsView();
+ App.settingsView.render();
+ });
+ };
+
return App;
}); \ No newline at end of file