source: Dev/trunk/src/client/qed-client/pages/index.js

Last change on this file was 494, checked in by hendrikvanantwerpen, 11 years ago
  • Removed all Coffeescript from codebase (build process is still there).
  • Nicer message on failed login.
  • Own all event subscriptions from widgets.
  • Update objects in _ObjectPage with invalid info too, or our refresh will overwrite what user did.
File size: 1.1 KB
RevLine 
[443]1define([
[490]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) {
[443]9    return declare([Page],{
10        templateString: template,
11        selectedObject: null,
12        startup: function() {
13            if ( this._started ) { return; }
14            this.inherited(arguments);
[490]15            //this.btnContentCreate.on("click",function(){ Router.go("/sessions"); });
16            //this.btnContentFacilitate.on("click",function(){ Router.go("/run"); });
[494]17            this.own(this.btnSurveys.on("click",function(){
[490]18                Router.go(surveys.getCollectionPath());
[494]19            }));
20            this.own(this.btnQuestions.on("click",function(){
[490]21                Router.go(questions.getCollectionPath());
[494]22            }));
[490]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"); });
[443]26        }
27    });
28});
Note: See TracBrowser for help on using the repository browser.