Ignore:
Timestamp:
05/02/13 13:13:13 (12 years ago)
Author:
hendrikvanantwerpen
Message:

Enable validation on all fields of question.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Dev/trunk/client/qed/widgets/ListWidget.js

    r441 r442  
    9090        _setValueAttr: function(value) {
    9191            this.clear();
    92             this.appendItems(value);
     92            this.appendItems(value || []);
     93        },
     94        _setDisabledAttr: function(value) {
     95            this._set("disabled", value);
     96            array.forEach(this.getChildren(), function(child){
     97                child.set("disabled", value);
     98            });
     99        },
     100        _setReadOnlyAttr: function(value) {
     101            this._set("readOnly", value);
     102            array.forEach(this.getChildren(), function(child){
     103                child.set("readOnly", value);
     104            });
     105        },
     106        focus: function() {
     107            var children = this.getChildren();
     108            if ( children.length > 0 ) {
     109                children[0].focus();
     110            }
    93111        },
    94112        appendItems: function(items) {
Note: See TracChangeset for help on using the changeset viewer.