Changeset 490 for Dev/trunk/src/client/qed-client/pages/index.js
- Timestamp:
- 03/08/14 22:51:23 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Dev/trunk/src/client/qed-client/pages/index.js
r443 r490 1 1 define([ 2 'dojo/_base/declare', 3 '../app/Router', 4 '../app/Page', 5 'dojo/text!./templates/index.html' 6 ],function(declare,Router,Page,template){ 2 "../app/Page", 3 "../app/Router", 4 "../model/classes/questions", 5 "../model/classes/surveys", 6 "dojo/_base/declare", 7 "dojo/text!./templates/index.html" 8 ], function(Page, Router, questions, surveys, declare, template) { 7 9 return declare([Page],{ 8 10 templateString: template, … … 11 13 if ( this._started ) { return; } 12 14 this.inherited(arguments); 13 this.btnContentCreate.on("click",function(){ Router.go("/sessions"); }); 14 this.btnContentFacilitate.on("click",function(){ Router.go("/run"); }); 15 this.btnSurveys.on("click",function(){ Router.go("/surveys"); }); 16 this.btnQuestions.on("click",function(){ Router.go("/questions"); }); 17 this.btnApplications.on("click",function(){ Router.go("/applications"); }); 18 this.btnDashboards.on("click",function(){ Router.go("/dashboards"); }); 19 this.btnResults.on("click",function(){ Router.go("/results"); }); 15 //this.btnContentCreate.on("click",function(){ Router.go("/sessions"); }); 16 //this.btnContentFacilitate.on("click",function(){ Router.go("/run"); }); 17 this.btnSurveys.on("click",function(){ 18 Router.go(surveys.getCollectionPath()); 19 }); 20 this.btnQuestions.on("click",function(){ 21 Router.go(questions.getCollectionPath()); 22 }); 23 //this.btnApplications.on("click",function(){Router.go("/applications");}); 24 //this.btnDashboards.on("click",function(){ Router.go("/dashboards"); }); 25 //this.btnResults.on("click",function(){ Router.go("/results"); }); 20 26 } 21 27 });
Note: See TracChangeset
for help on using the changeset viewer.