Changeset 1530
- Timestamp:
- 2010-05-11 09:40:36 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/modules/kauri-forms/kauri-forms-framework/src/main/kauri/static-{build}.key/kauri.forms/field.js
r1502 r1530 141 141 */ 142 142 Options.prototype.set = function( values, labels) { 143 144 labels = labels || values; 143 labels = labels || values.slice(); 144 145 145 if (this.nullable) { 146 146 for (var i = values.length; i>0; i--) { … … 148 148 labels[i] = labels[i-1]; 149 149 } 150 151 150 values[0] = undefined; 152 151 labels[0] = this['null-text']; … … 273 272 if (this.labelTemplate) 274 273 labels[j] = this.labelTemplate.expand(option, false); 275 } else 276 values[j] = option; 274 } else { 275 values[j] = option; 276 } 277 277 if (this.type) 278 278 values[j] = this.type.parseWireValue(values[j]);
Note: See TracChangeset
for help on using the changeset viewer.