diff options
Diffstat (limited to 'assets/js/src/Router.js')
-rw-r--r-- | assets/js/src/Router.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/assets/js/src/Router.js b/assets/js/src/Router.js index d1e5de2a..6993e5c3 100644 --- a/assets/js/src/Router.js +++ b/assets/js/src/Router.js @@ -10,7 +10,8 @@ Router.prototype.dispatch = function(app) { for (var id in this.routes) { if (document.getElementById(id)) { var controller = Object.create(this.routes[id].prototype); - controller.execute(app); + this.routes[id].apply(controller, [app]); + controller.execute(); break; } } @@ -30,5 +31,7 @@ jQuery(document).ready(function() { router.addRoute('analytic-avg-time-column', AvgTimeColumnChart); router.addRoute('analytic-task-time-column', TaskTimeColumnChart); router.addRoute('analytic-lead-cycle-time', LeadCycleTimeChart); + router.addRoute('gantt-chart', Gantt); router.dispatch(app); + app.listen(); }); |