source: Dev/branches/rest-dojo-ui/client/rft/pages/index.js @ 364

Last change on this file since 364 was 359, checked in by hendrikvanantwerpen, 13 years ago

Application header is link to menu now.
Links in menu page are clickable now.
Added some logic to session page. Simple props can now be edited and saved.
Different actions for session templates and instances in sessions page.
Cleaner code in ObjectBox?. No special cases anymore, scope error fixed.
Fixed scope error in store.js.

File size: 895 bytes
Line 
1define(['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        });
15    });
16
Note: See TracBrowser for help on using the repository browser.