rem: if ((urifield.wasEmpty  &&  urifield.edited == false ) || (!(dbforms2.form.currentID > 0) && (typeof urifield.edited == "undefined" ))) { 
add: if ((urifield.wasEmpty  &&  urifield.edited == false ) || (!(dbforms2.mainform.currentID > 0) && (typeof urifield.edited == "undefined" ))) { 
context: function updateUriField(field, urifield) {	//only update uri field, if it's a new entry (uri should be a permalink after all)		if (urifield.value.length == 0) {		urifield.wasEmpty = true;		urifield.edited = false;	}	if ((urifield.wasEmpty  &&  urifield.edited == false ) || (!(dbforms2.form.currentID > 0) && (typeof urifield.edited == "undefined" ))) {		var splitted = field.split(",");		var uri = "";		for (var i = 0; i < splitted.length; i++) {			uri = uri + document.getElementById(splitted[i]).value + "-";		}		var newValue= makeUri(uri);		urifield.value = newValue ;	}}
meta: 6621	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6621/171657c557bdf3f11e3955500f70407c0dcecb7b/helpers.js/buggy/webinc/plugins/dbforms2/helpers.js