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.
File:
1 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;
Note: See TracChangeset for help on using the changeset viewer.