Last change
on this file since 360 was
355,
checked in by tjcschipper, 13 years ago
|
- surveyEditor more or less works! Only needed change is addition of "topic" property in question objects (database-side), and the change from "category"(string) to "categories"(string[]).
- surveyEditor still needs removal function and infofunction to be written properly!
- Added all files belonging to SurveyAdvanced?. Most do not work properly yet, but at least there will not be a 404 page when you click btnPreview on survey.html.
|
File size:
1.2 KB
|
Line | |
---|
1 | define([
|
---|
2 | 'dojo/_base/declare',
|
---|
3 | 'rft/ui/SurveyEditorPreview'
|
---|
4 | ], function(declare, SurveyEditorPreview) {
|
---|
5 | return declare("rft.ui.SurveyEditor", [], {
|
---|
6 |
|
---|
7 | //Properties
|
---|
8 | /* This class will coordinate between the SurveyEditorPreview and SurveyEditorToolkit (in both the SurveyEditor.html and QuestionEditor.html, if at all possible!)
|
---|
9 | It will keep the list of SurveyContent that is currently included and configured, and pass this to the aforementioned instances so they can display this and allow the user to interact.
|
---|
10 | It will need to either expose a bunch of method calls that the two subclasses can call when the user performs an action, or it will have to listen to their events.
|
---|
11 | */
|
---|
12 | postCreate: function(){
|
---|
13 | this.preview = new SurveyEditorPreview({}).placeAt("surveyEditorPreviewNode");
|
---|
14 | this.preview.startup();
|
---|
15 | /* NOT DEFINED YET
|
---|
16 | this.toolkit = new SurveyEditorToolkit({}).placeAt("surveyEditorToolkitNode");
|
---|
17 | this.toolkit.startup();
|
---|
18 | */
|
---|
19 | },
|
---|
20 |
|
---|
21 | loadSurveyContent: function() {
|
---|
22 | // 1. Get data from server on startup.
|
---|
23 | // 2. Pass this data to toolkit and preview so they can update the visual representation.
|
---|
24 | debugger;
|
---|
25 | }
|
---|
26 |
|
---|
27 | });
|
---|
28 | }); |
---|
Note: See
TracBrowser
for help on using the repository browser.