rem: if (document.getElementById('SQLFormFieldConstraintTarget').value == 'value') { 
add: if ( (document.getElementById('SQLFormFieldConstraintTarget').value == 'value') || (document.getElementById('SQLFormFieldConstraintTarget').value == '' && document.getElementById('SQLFormFieldConstraintValue').value != '') ) { 
context: function updateFormFields() {//alert(fieldCombo);	var fieldTypeList = document.getElementById('SQLFormFieldType');	if (fieldTypeList.selectedIndex < 0) {		fieldTypeList.selectedIndex = 0;	}	var re = fieldTypeList.options[fieldTypeList.selectedIndex].text.match(/^[^\/]+\/([^\/]+)$/);		var fieldType = RegExp.$1;	var fieldProperties = fieldTypes[fieldType];	// Hanlde sign field	if (fieldProperties['hasSign'] == 1) {		enableField('SQLFormSigned');	} else {		disableField('SQLFormSigned');	}	// Handle autoincrement field	if (fieldProperties['canAutoIncrement'] == 1) {		enableField('SQLFormAutoIncrement');	} else {		disableField('SQLFormAutoIncrement');	}	// Handle regex field	if (		(fieldProperties['canAutoIncrement'] && document.getElementById('autoIncrementField')) || 		(document.getElementById('SQLFormReadOnly') == 1)	) {		disableField('SQLFormRegex');	} else {		enableField('SQLFormRegex');	}	// Handle Field constraints section	if (document.getElementById('SQLFormFieldConstraintType').value > 0) {		enableField('SQLFormFieldConstraintTarget');		if (document.getElementById('SQLFormFieldConstraintTarget').value == 'value') {			enableField('SQLFormFieldConstraintValue');		} else {			disableField('SQLFormFieldConstraintValue');		}	} else {		disableField('SQLFormFieldConstraintTarget');		disableField('SQLFormFieldConstraintValue');	}}
meta: 5314	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5314/32662367ec676159582e72b57772525a012a9074/SQLFormEditField.js/buggy/www/extras/wobject/SQLForm/SQLFormEditField.js