define([ 'dojo/_base/declare', '../app/Router', '../app/Page', 'dojo/text!./templates/index.html' ],function(declare,Router,Page,template){ return declare([Page],{ templateString: template, selectedObject: null, startup: function() { if ( this._started ) { return; } this.inherited(arguments); this.btnContentCreate.on("click",function(){ Router.go("/sessions"); }); this.btnContentFacilitate.on("click",function(){ Router.go("/run"); }); this.btnSurveys.on("click",function(){ Router.go("/surveys"); }); this.btnQuestions.on("click",function(){ Router.go("/questions"); }); this.btnApplications.on("click",function(){ Router.go("/applications"); }); this.btnDashboards.on("click",function(){ Router.go("/dashboards"); }); this.btnResults.on("click",function(){ Router.go("/results"); }); } }); });