Changeset 372 for Dev/branches/rest-dojo-ui/client/rft/pages
- Timestamp:
- 07/23/12 17:03:47 (13 years ago)
- Location:
- Dev/branches/rest-dojo-ui/client/rft/pages
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
Dev/branches/rest-dojo-ui/client/rft/pages/question.html
r366 r372 8 8 </div> 9 9 <div data-dojo-type="dijit.layout.BorderContainer" data-dojo-props="region:'left', design:'headline'" style="width: 300px;"> 10 11 10 <div data-dojo-type="dijit.layout.ContentPane" data-dojo-props="region:'center'"> 12 11 <div id="QuestionEditorToolkit"></div> -
Dev/branches/rest-dojo-ui/client/rft/pages/question.js
r366 r372 16 16 function(declare, lang, Deferred, LineWithActionsWidget, store, _Page, api, content, registry, on, behavior, query){ 17 17 return declare('rft.pages.question', [_Page], { 18 object: null, 19 preview: null, 18 question: null, 19 _toolkit: null, 20 _preview: null, 20 21 21 22 onVisit: function() { … … 23 24 Deferred.when(store.get(this.pageArgs.uid)) 24 25 .then(lang.hitch(this, function(obj) { 25 this.object = obj; 26 this.question = obj; 27 this._refresh(); 26 28 })); 27 29 } else { 28 30 throw new Error("Error: no reference to object set!"); 29 31 } 30 32 this._setupEditor(); 31 33 this._setupButtons(); 32 this._setupEditor();33 34 }, 34 35 onLeave: function() { 35 36 this.inherited(arguments); 37 }, 38 _refresh: function () { 39 this._toolkit.propertiesForm.set('value', this.question); 36 40 }, 37 41 _setupButtons: function() { … … 52 56 }, 53 57 _setupEditor: function() { 54 this.toolkit = new rft.ui.QuestionEditorToolkit(); 55 this.toolkit.placeAt("QuestionEditorToolkit"); 58 // this.toolkit = new rft.ui.QuestionEditorToolkit( { question: this.question } ); 59 this._toolkit = new rft.ui.QuestionEditorToolkit(); 60 this._toolkit.placeAt("QuestionEditorToolkit"); 56 61 57 this. preview = new rft.ui.QuestionEditorPreview();58 this. preview.placeAt("QuestionEditorPreview");62 this._preview = new rft.ui.QuestionEditorPreview(); 63 this._preview.placeAt("QuestionEditorPreview"); 59 64 } 60 65 });
Note: See TracChangeset
for help on using the changeset viewer.