rem: { if (this.r == null) return false; var obj = (this.c == null)?this.matrix[this.r]:this.matrix[this.r].cells[this.c]; if (this.color == "bg") { if (color != null) { obj.bg = "#" + color; document.getElementById("bg").style.background = obj.bg; } else { obj.bg = null; document.getElementById("bg").style.background = "url(" + this.empty + ")"; } } else { if (color != null) { obj.borderColor = "#" + color; obj.borderStyle = "solid"; obj.borderWidth = "1px"; document.getElementById("border").style.background = obj.borderColor; } else { obj.borderColor = null; obj.borderStyle = null; obj.borderWidth = null; document.getElementById("border").style.background = "url(" + this.empty + ")"; } } this.refresh(); } 
add: { if (this.r == null) return false; var obj = (this.c == null)?this.matrix[this.r]:this.matrix[this.r].cells[this.c]; if (this.color == "bg") { if (color != null) { obj.bg = "#" + color; document.getElementById("bg").style.background = obj.bg; } else { obj.bg = null; document.getElementById("bg").style.background = "url(" + this.empty + ")"; } } else { if (color != null) { obj.borderColor = "#" + color; obj.borderStyle = "solid"; obj.borderWidth = "1px"; document.getElementById("border").style.background = obj.borderColor; } else { obj.borderColor = null; obj.borderStyle = null; obj.borderWidth = null; document.getElementById("border").style.background = "url(" + this.empty + ")"; } } this.refresh(); } 
context: 	this.setColor = function(color)	{		if (this.r == null) return false;		var obj = (this.c == null)?this.matrix[this.r]:this.matrix[this.r].cells[this.c];		if (this.color == "bg") {			if (color != null) {				obj.bg = "#" + color;				document.getElementById("bg").style.background = obj.bg;			} else {				obj.bg = null;				document.getElementById("bg").style.background = "url(" + this.empty + ")";			}		} else {			if (color != null) {				obj.borderColor = "#" + color;				obj.borderStyle = "solid";				obj.borderWidth = "1px";				document.getElementById("border").style.background = obj.borderColor;			} else {				obj.borderColor = null;				obj.borderStyle = null;				obj.borderWidth = null;				document.getElementById("border").style.background = "url(" + this.empty + ")";			}		}		this.refresh();	}
meta: 5635	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5635/527cf5457da0bbcd901319db3fb78a7f3c74d57b/table-editor.js/clean/fudge/wysiwyg/plugins/table_editing/table-editor.js