Ignore:
Timestamp:
03/08/14 22:51:23 (11 years ago)
Author:
hendrikvanantwerpen
Message:
  • Mark content as dirty to prevent moving away from unsaved data.
  • Better change propagation from lists and our own widgets.
  • Generate notifications for errors and show correct message.
  • Moved all path/url generation to the class stores, not everywhere we use it.
  • Give user always a choice between Save and Save & Close.
  • Better refresh behaviour on form changes and saves.
  • Don't generate duplicate code error when existing object is the one you're storing.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Dev/trunk/src/client/qed-client/pages/index.js

    r443 r490  
    11define([
    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) {
    79    return declare([Page],{
    810        templateString: template,
     
    1113            if ( this._started ) { return; }
    1214            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"); });
    2026        }
    2127    });
Note: See TracChangeset for help on using the changeset viewer.