add: this.changed = true; 
context: function dbforms2_field_file(DOMNode) {        var uploadDir = '';	this.init = function(DOMNode) {        this.initField(DOMNode);        this.uploadDir = this.DOMNode.getAttribute('uploaddir');                this.previewSmallDOMNode = document.getElementById(this.DOMNode.id + "_previewSmall");        this.previewLargeDOMNode = document.getElementById(this.DOMNode.id + "_previewLarge");    }    this.setValue = function(value) {        this.value = value;        this.updateDOMNodeValue();        this.updatePreviewAndTooltip();    }    this.updatePreviewAndTooltip = function() {        if(dbforms2_helpers.isImage(this.value)) {            this.previewSmallDOMNode.src = DBFORMS2_IMG_PREVIEW_SMALL_DIR + this.uploadDir + this.value;            bx_tooltip.prepare(this.previewLargeDOMNode, DBFORMS2_IMG_PREVIEW_LARGE_DIR + this.uploadDir + this.value);        } else {            this.previewSmallDOMNode.src = DBFORMS2_IMG_NULLIMG;            bx_tooltip.remove(this.previewLargeDOMNode);        }    }    this.onChange = function() {        this.value = this.DOMNode.value;        this.updatePreviewAndTooltip();    }    	this.setIframe = function() {				var iframe = document.getElementById(this.DOMNode.id + "_iframe");		if (iframe.style.display == "block") {			this.closeIframe();		} else {			iframe.style.display = "block";			iframe.DOMNode = this.DOMNode;			iframe.onload = function() { 				var doc = this.contentDocument;				doc.forms.upload.action = document.location + "/upload/";				var fu = doc.getElementById("fieldname");				fu.value = this.DOMNode.name;				this.onload = null;			}						iframe.contentWindow.location = bx_webroot + "webinc/plugins/dbforms2/emptyupload.html";		}	}		this.closeIframe = function() {		var iframe = document.getElementById(this.DOMNode.id + "_iframe")		iframe.style.display = "none";	}	}
meta: 6621	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6621/8f821fe3fb25694472797434f06c9da984eb2bff/fields.js/clean/webinc/plugins/dbforms2/fields.js