context: 	setUnique: function(objectId, recordUid, selectedValue) {		if (this.data.unique && this.data.unique[objectId]) {			var unique = this.data.unique[objectId];			if (unique.type == 'select') {					// remove used items from each select-field of the child records				if (!(unique.selector && unique.max == -1)) {					var elName = this.parseFormElementName('full', objectId, 1)+'['+recordUid+']['+unique.field+']';					var formName = this.prependFormFieldNames+this.parseFormElementName('parts', objectId, 3, 1);					var fieldObj = document.getElementsByName(elName);					var values = $H(unique.used).values();					if (fieldObj.length) {							// remove all before used items from the new select-item						for (var i=0; i<values.length; i++) this.removeSelectOption(fieldObj[0], values[i]);							// set the selected item automatically to the first of the remaining items						selectedValue = fieldObj[0].options[0].value;						fieldObj[0].options[0].selected = true;						this.updateUnique(fieldObj[0], objectId, formName, recordUid);						this.handleChangedField(fieldObj[0], objectId+'['+recordUid+']');						if (typeof this.data.unique[objectId].used.length != 'undefined') {							this.data.unique[objectId].used = {};						}						this.data.unique[objectId].used[recordUid] = selectedValue;					}				}			} else if (unique.type == 'groupdb') {					// add the new record to the used items:				this.data.unique[objectId].used[recordUid] = {'table':unique.elTable, 'uid':selectedValue};			}				// remove used items from a selector-box			if (unique.selector == 'select' && selectedValue) {				var selector = $(objectId+'_selector');				this.removeSelectOption(selector, selectedValue);				this.data.unique[objectId]['used'][recordUid] = selectedValue;			}		}	},
meta: 9100	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/9100/0fe503575d736f3deaf3a3db64c638e4c02eb77c/jsfunc.inline.js/clean/t3lib/jsfunc.inline.js