Changeset 1916
- Timestamp:
- 2011-07-25 13:28:42 (10 months 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
r1913 r1916 160 160 Options.prototype.set = function( values, labels) { 161 161 values = $.extend([], values); //clone to avoid issue #464 162 labels = labels ? $.extend([], labels) : null; 162 labels = labels ? $.extend([], labels) : null; 163 163 164 if (this.type) { 164 165 this.userValues = new Array(); 165 var last = this.values ? this.values.length : 0;166 var last = values ? values.length : 0; 166 167 for(var i = 0; i< last; i++) 167 if (typeof this.values[i] == 'string' )168 if (typeof values[i] == 'string' ) 168 169 this.userValues[i] = values[i]; 169 170 else … … 180 181 for (var i = values.length; i>0; i--) { 181 182 values[i] = values[i-1]; 182 labels[i] = labels[i-1]; 183 labels[i] = labels[i-1]; 183 184 this.userValues[i] = this.userValues[i-1]; 184 185 }
Note: See TracChangeset
for help on using the changeset viewer.