Ignore:
Timestamp:
03/11/14 01:00:40 (11 years ago)
Author:
hendrikvanantwerpen
Message:

Don't delete elements from certain lists if they are disabled
or readOnly. Didn't include this in ListWidget?.removeItem, since
programmatically things should keep working even when disabled, I would
say. So this needs to be done in the place of the event.

File:
1 edited

Legend:

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

    r492 r503  
    4343                             this.response._surveyRun.respondentCanDeleteOwnResponse);
    4444            this.cancelButton.set('disabled',canDelete||false);
    45             this.surveyWidget.set('disabled', false);
     45            this.surveyWidget.set('readOnly', false);
    4646        },
    4747        _disableSubmit: function() {
     
    4949            this.continueButton.set('disabled',true);
    5050            this.cancelButton.set('disabled',true);
    51             this.surveyWidget.set('disabled', true);
     51            this.surveyWidget.set('readOnly', true);
    5252        },
    5353        _showInfo: function(html) {
Note: See TracChangeset for help on using the changeset viewer.