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.js13
1 files changed, 11 insertions, 2 deletions
diff --git a/module/web/static/js/default.js b/module/web/static/js/default.js
index 3ec133a87..bed397712 100644
--- a/module/web/static/js/default.js
+++ b/module/web/static/js/default.js
@@ -31,12 +31,21 @@ require.config({
});
-define('default', ['jquery', 'backbone', 'routers/defaultRouter', 'views/headerView'], function ($, Backbone, DefaultRouter, HeaderView) {
+define('default', ['jquery', 'backbone', 'routers/defaultRouter', 'views/headerView', 'views/packageTreeView'],
+ function ($, Backbone, DefaultRouter, HeaderView, TreeView) {
+
var init = function(){
var view = new HeaderView();
view.render();
};
- return {"init":init};
+ var initPackageTree = function() {
+ $(function() {
+ var view = new TreeView();
+ view.init();
+ });
+ };
+
+ return {"init":init, "initPackageTree": initPackageTree};
}); \ No newline at end of file