rem: { var border = "url(" + this.empty + ")"; var bg = "url(" + this.empty + ")"; var obj = null; if (this.r != null) obj = (this.c == null)?this.matrix[this.r]:this.matrix[this.r].cells[this.c]; if (obj != null) { border = (obj.borderColor == null)?"url(" + this.empty + ")":obj.borderColor; bg = (obj.bg == null)?"url(" + this.empty + ")":obj.bg; } if (this.color == "bg") { this.color = "border"; document.getElementById("bgborder").innerHTML = '<div id="bg" style="width:30px;height:30px;position:absolute;left:0px;top:0px;border:inset 1px;background:' + bg + '"></div>' + '<div id="border" style="width:30px;height:30px;position:absolute;left:10px;top:10px;border:inset 1px;background:' + border + '">' + '	<div style="width:19px;height:19px;position:absolute;left:5px;top:5px;border:outset 1px;background:#FFF;font-size:5px"></div>' + '</div>'; } else { this.color = "bg"; document.getElementById("bgborder").innerHTML = '<div id="border" style="width:30px;height:30px;position:absolute;left:10px;top:10px;border:inset 1px;background:' + border + '">' + '	<div style="width:19px;height:19px;position:absolute;left:5px;top:5px;border:outset 1px;background:#FFF;font-size:5px"></div>' + '</div>' + '<div id="bg" style="width:30px;height:30px;position:absolute;left:0px;top:0px;border:inset 1px;background:' + bg + '"></div>'; } } 
add: { var border = "url(" + this.empty + ")"; var bg = "url(" + this.empty + ")"; var obj = null; if (this.r != null) obj = (this.c == null)?this.matrix[this.r]:this.matrix[this.r].cells[this.c]; if (obj != null) { border = (obj.borderColor == null)?"url(" + this.empty + ")":obj.borderColor; bg = (obj.bg == null)?"url(" + this.empty + ")":obj.bg; } if (this.color == "bg") { this.color = "border"; document.getElementById("bgborder").innerHTML = '<div id="bg" style="width:30px;height:30px;position:absolute;left:0px;top:0px;border:inset 1px;background:' + bg + '"></div>' + '<div id="border" style="width:30px;height:30px;position:absolute;left:10px;top:10px;border:inset 1px;background:' + border + '">' + '    <div style="width:19px;height:19px;position:absolute;left:5px;top:5px;border:outset 1px;background:#FFF;font-size:5px"></div>' + '</div>'; } else { this.color = "bg"; document.getElementById("bgborder").innerHTML = '<div id="border" style="width:30px;height:30px;position:absolute;left:10px;top:10px;border:inset 1px;background:' + border + '">' + '    <div style="width:19px;height:19px;position:absolute;left:5px;top:5px;border:outset 1px;background:#FFF;font-size:5px"></div>' + '</div>' + '<div id="bg" style="width:30px;height:30px;position:absolute;left:0px;top:0px;border:inset 1px;background:' + bg + '"></div>'; } } 
context: 	this.toggleBgBorder = function()	{		var border = "url(" + this.empty + ")";		var bg = "url(" + this.empty + ")";		var obj = null;		if (this.r != null) obj = (this.c == null)?this.matrix[this.r]:this.matrix[this.r].cells[this.c];		if (obj != null) {			border = (obj.borderColor == null)?"url(" + this.empty + ")":obj.borderColor;			bg = (obj.bg == null)?"url(" + this.empty + ")":obj.bg;		}		if (this.color == "bg") {			this.color = "border";			document.getElementById("bgborder").innerHTML = '<div id="bg" style="width:30px;height:30px;position:absolute;left:0px;top:0px;border:inset 1px;background:' + bg + '"></div>' +				'<div id="border" style="width:30px;height:30px;position:absolute;left:10px;top:10px;border:inset 1px;background:' + border + '">' +				'	<div style="width:19px;height:19px;position:absolute;left:5px;top:5px;border:outset 1px;background:#FFF;font-size:5px"></div>' +				'</div>';		} else {			this.color = "bg";			document.getElementById("bgborder").innerHTML = '<div id="border" style="width:30px;height:30px;position:absolute;left:10px;top:10px;border:inset 1px;background:' + border + '">' +				'	<div style="width:19px;height:19px;position:absolute;left:5px;top:5px;border:outset 1px;background:#FFF;font-size:5px"></div>' +				'</div>' +				'<div id="bg" style="width:30px;height:30px;position:absolute;left:0px;top:0px;border:inset 1px;background:' + bg + '"></div>';		}	}
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