Ignore:
Timestamp:
03/08/14 23:48:08 (11 years ago)
Author:
hendrikvanantwerpen
Message:
  • Include _ObjectPage this time.
  • Hash replace doesn't reload page.
  • Widget in dialog has name to actually give results.
Location:
Dev/trunk/src/client/qed-client/pages
Files:
1 added
2 edited

Legend:

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

    r490 r491  
    5858        _refresh: function() {
    5959            this.titleNode.innerHTML = this.object.title || "(set title in properties)";
    60             this.propertiesDialog.set('value',this.object);
     60            this.propertiesDialog.set('value',{survey:this.object});
    6161            this.questionList.set('value',
    6262                                  this.object.questions);
     
    7676        _onPropertiesOk: function(evt) {
    7777            this.propertiesDialog.hide();
    78             lang.mixin(this.object, this.propertiesDialog.get('value'));
     78            lang.mixin(this.object, this.propertiesDialog.get('value').survey);
    7979            this.markDirty();
    8080            this._refresh();
     
    8484        _onPropertiesCancel: function(evt) {
    8585            this.propertiesDialog.hide();
    86             this.propertiesDialog.set('value',this.object);
     86            this.propertiesDialog.set('value',{survey:this.object});
    8787            if ( evt ) { event.stop(evt); }
    8888            return false;
  • Dev/trunk/src/client/qed-client/pages/templates/survey.html

    r490 r491  
    4545         data-dojo-attach-event="onSubmit:_onPropertiesOk">
    4646        <fieldset class="qedFieldset">
    47             <div data-dojo-type="../model/widgets/SurveyWidget"></div>
     47            <div data-dojo-type="../model/widgets/SurveyWidget" data-dojo-props="name:'survey'"></div>
    4848        </fieldset>
    4949        <button data-dojo-type="dijit/form/Button"
Note: See TracChangeset for help on using the changeset viewer.