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/routes.js

    r487 r490  
    11define([
     2    "./model/classes/questions",
     3    "./model/classes/surveyRuns",
     4    "./model/classes/surveys",
    25    "./pages/index",
    36    "./pages/previewSurvey",
     
    710    "./pages/surveyRun",
    811    "./pages/surveys"
    9 ], function(index, previewSurvey, question, questions, survey, surveyRun, surveys) {
     12], function(questionsClass, surveyRunsClass, surveysClass, index, previewSurvey, question, questions, survey, surveyRun, surveys) {
    1013
    1114    return [
    1215        { path: "/", redirect: "/index" },
    1316        { path: "/index", constructor: index },
    14         { path: "/questions", constructor: questions },
    15         { path: "/question/:questionId", constructor: question },
    16         { path: "/surveys", constructor: surveys },
    17         { path: "/survey/:surveyId", constructor: survey },
    18         { path: "/surveyRun/:surveyRunId", constructor: surveyRun },
     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 },
    1922        //{ path: "/sessions", constructor: sessions },
    2023        //{ path: "/session/:sessionId", constructor: session },
    21         { path: "/previewSurvey/:surveyId", constructor: previewSurvey }
     24        { path: surveysClass.getPreviewPath(':surveyId'), constructor: previewSurvey }
    2225    ];
    2326
Note: See TracChangeset for help on using the changeset viewer.