source: Dev/trunk/src/client/qed-client/routes.js @ 490

Last change on this file since 490 was 490, checked in by hendrikvanantwerpen, 11 years ago
  • 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 size: 1.1 KB
RevLine 
[443]1define([
[490]2    "./model/classes/questions",
3    "./model/classes/surveyRuns",
4    "./model/classes/surveys",
[487]5    "./pages/index",
6    "./pages/previewSurvey",
7    "./pages/question",
8    "./pages/questions",
9    "./pages/survey",
10    "./pages/surveyRun",
11    "./pages/surveys"
[490]12], function(questionsClass, surveyRunsClass, surveysClass, index, previewSurvey, question, questions, survey, surveyRun, surveys) {
[443]13
14    return [
15        { path: "/", redirect: "/index" },
16        { path: "/index", constructor: index },
[490]17        { path: questionsClass.getCollectionPath(), constructor: questions },
18        { path: questionsClass.getObjectPath(':objectId'), constructor: question },
19        { path: surveysClass.getCollectionPath(), constructor: surveys },
20        { path: surveysClass.getObjectPath(':objectId'), constructor: survey },
21        { path: surveyRunsClass.getObjectPath(':objectId'), constructor: surveyRun },
[443]22        //{ path: "/sessions", constructor: sessions },
23        //{ path: "/session/:sessionId", constructor: session },
[490]24        { path: surveysClass.getPreviewPath(':surveyId'), constructor: previewSurvey }
[443]25    ];
26
27});
Note: See TracBrowser for help on using the repository browser.