rem: }  if (!(unique.selector && unique.max == -1)) { var formName = this.prependFormFieldNames+this.parseFormElementName('parts', objectPrefix, 3, 1); var formObj = document.getElementsByName(formName); if (formObj.length) { var records = formObj[0].value.split(','); var recordObj;  for (var i=0; i<records.length; i++) { recordObj = document.getElementsByName(this.prependFormFieldNames+'['+unique.table+']['+records[i]+']['+unique.field+']'); if (recordObj.length) this.readdSelectOption(recordObj[0], fieldObj[0].value, unique); 
add:  if (!(unique.selector && unique.max == -1)) { var formName = this.prependFormFieldNames+this.parseFormElementName('parts', objectPrefix, 3, 1); var formObj = document.getElementsByName(formName); if (formObj.length) { var records = formObj[0].value.split(','); var recordObj;  for (var i=0; i<records.length; i++) { recordObj = document.getElementsByName(this.prependFormFieldNames+'['+unique.table+']['+records[i]+']['+unique.field+']'); if (recordObj.length) this.readdSelectOption(recordObj[0], fieldObj[0].value, unique); } 
context: 	revertUnique: function(objectPrefix, elName, recordUid) {		var unique = this.data.unique[objectPrefix];		var fieldObj = elName ? document.getElementsByName(elName+'['+unique.field+']') : null;		if (unique.type == 'select') {			if (fieldObj && fieldObj.length) {				delete(this.data.unique[objectPrefix].used[recordUid])				if (unique.selector == 'select') {					if (!isNaN(fieldObj[0].value)) {						var selector = $(objectPrefix+'_selector');						this.readdSelectOption(selector, fieldObj[0].value, unique);					}				}				if (!(unique.selector && unique.max == -1)) {					var formName = this.prependFormFieldNames+this.parseFormElementName('parts', objectPrefix, 3, 1);					var formObj = document.getElementsByName(formName);					if (formObj.length) {						var records = formObj[0].value.split(',');						var recordObj;							// walk through all inline records on that level and get the select field						for (var i=0; i<records.length; i++) {							recordObj = document.getElementsByName(this.prependFormFieldNames+'['+unique.table+']['+records[i]+']['+unique.field+']');							if (recordObj.length) this.readdSelectOption(recordObj[0], fieldObj[0].value, unique);						}					}				}			}		} else if (unique.type == 'groupdb') {			// alert(objectPrefix+'/'+recordUid);			delete(this.data.unique[objectPrefix].used[recordUid])		}	},
meta: 9100	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/9100/d2e62ec9531f5adef421691cecb3849b60105b65/jsfunc.inline.js/clean/t3lib/jsfunc.inline.js