Changeset 407 for Dev/branches/rest-dojo-ui/client/rft/pages/index.js
- Timestamp:
- 09/05/12 14:41:13 (13 years ago)
- Location:
- Dev/branches/rest-dojo-ui
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
Dev/branches/rest-dojo-ui
- Property svn:ignore
-
old new 1 1 nbproject 2 2 .project 3 release
-
- Property svn:ignore
-
Dev/branches/rest-dojo-ui/client
- Property svn:externals
-
old new 1 dojotoolkit http://svn.dojotoolkit.org/src/tags/release-1.8.0 1 dojo http://svn.dojotoolkit.org/src/tags/release-1.8.0/dojo 2 dijit http://svn.dojotoolkit.org/src/tags/release-1.8.0/dijit 3 dojox http://svn.dojotoolkit.org/src/tags/release-1.8.0/dojox 4 util http://svn.dojotoolkit.org/src/tags/release-1.8.0/util
-
- Property svn:externals
-
Dev/branches/rest-dojo-ui/client/rft/pages/index.js
r359 r407 1 define(['dojo/_base/declare','dojo/_base/lang','rft/content','rft/ui/_Page'], 2 function(declare,lang,content,_Page){ 3 return declare('rft.pages.index',[_Page],{ 4 selectedObject: null, 5 onVisit: function() { 6 this.btnContentCreate.on("click",function(){ content.goTo("sessions"); }); 7 this.btnContentFacilitate.on("click",function(){ content.goTo("run"); }); 8 this.btnSurveys.on("click",function(){ content.goTo("surveys"); }); 9 this.btnQuestions.on("click",function(){ content.goTo("questions"); }); 10 this.btnApplications.on("click",function(){ content.goTo("applications"); }); 11 this.btnDashboards.on("click",function(){ content.goTo("dashboards"); }); 12 this.btnResults.on("click",function(){ content.goTo("results"); }); 13 } 14 }); 1 define([ 2 'dojo/_base/declare', 3 '../app/Controller', 4 '../app/Page', 5 'dojo/text!./index.html' 6 ],function(declare,Controller,Page,template){ 7 return declare([Page],{ 8 templateString: template, 9 selectedObject: null, 10 startup: function() { 11 if ( this._started ) { return; } 12 this.inherited(arguments); 13 this.btnContentCreate.on("click",function(){ Controller.go("/sessions"); }); 14 this.btnContentFacilitate.on("click",function(){ Controller.go("/run"); }); 15 this.btnSurveys.on("click",function(){ Controller.go("/surveys"); }); 16 this.btnQuestions.on("click",function(){ Controller.go("/questions"); }); 17 this.btnApplications.on("click",function(){ Controller.go("/applications"); }); 18 this.btnDashboards.on("click",function(){ Controller.go("/dashboards"); }); 19 this.btnResults.on("click",function(){ Controller.go("/results"); }); 20 } 15 21 }); 16 22 });
Note: See TracChangeset
for help on using the changeset viewer.