rem: if (this.align != "left") out += ' align="' + this.align + '"'; 
add: if ((this.align != "left" && !this.th) || (this.align != "center" && this.th)) out += ' align="' + this.align + '"'; 
context: TCell = function(parent){	this.colspan 	= 1;	this.rowspan 	= 1;	this.visible 	= true;	this.align		= "left";	this.valign		= "middle";	this.bg			= null;	this.abbr		= null;	this.axis		= null;	this.th			= false;	this.scope		= null;	this.headers	= Array();	this.borderColor= null;	this.borderStyle= null;	this.borderWidth= null;	this.content	= "&nbsp;";	this.parent		= parent;	this.selected	= false;	this.style		= null;	this.extra		= "";	this.toString = function(c)	{		if (!this.visible) return "";		var out = '';		if (this.th) out = '<th';		else out = '<td';		var r = this.parent.row;		var name = this.parent.parent.varname;		out += ' id="td' + r + '_' + c + '"';		out += ' onclick="' + name + '.select(this)"';		if (this.colspan > 1) out += ' colspan="' + this.colspan + '"';		if (this.rowspan > 1) out += ' rowspan="' + this.rowspan + '"';		if (this.abbr != null) out += ' abbr="' + this.abbr + '"';		if (this.scope != null) out += ' scope="' + this.scope + '"';		if (this.align != "left") out += ' align="' + this.align + '"';		if (this.valign != "middle") out += ' valign="' + this.valign + '"';		if (this.headers.length > 0) {			out +=' headers="';			for (i = 0;i<this.headers.length;i++)				out += name + '_td' + this.headers[i].r + '_' + this.headers[i].c + ' ';			out +='"';		}		var style = ' style="';		if (this.borderColor != null) style += 'border-color:' + this.borderColor + ';';		if (this.borderStyle != null) style += 'border-style:' + this.borderStyle + ';';		if (this.borderWidth != null) style += 'border-width:' + this.borderWidth + ';';		if (this.bg != null) style += 'background-color:' + this.bg + ';';		if (this.style != null) style += this.style;		if (this.selected) style += 'background-image:url(' + this.parent.parent.semigray + ');';		if (style != ' style="') out += style + '"';		//alert(this.content);		out += '>' + this.content;		if (this.th) out += '</th>';		else out += '</td>';		return out;	}	this.Export = function(c)	{		if (!this.visible) return "";		var out = '';		if (this.th) out = '<th';		else out = '<td';		var r = this.parent.row;		var name = this.parent.parent.id;		out += ' id="' + name + '_td' + r + '_' + c + '"';		if (this.colspan > 1) out += ' colspan="' + this.colspan + '"';		if (this.rowspan > 1) out += ' rowspan="' + this.rowspan + '"';		if (this.abbr != null && this.abbr != "") out += ' abbr="' + this.abbr + '"';		if (this.scope != null && this.scope != "") out += ' scope="' + this.scope + '"';		if (this.align != "left") out += ' align="' + this.align + '"';		if (this.valign != "middle") out += ' valign="' + this.valign + '"';		if (this.headers.length > 0) {			out +=' headers="';			for (i = 0;i<this.headers.length;i++)				out += name + '_td' + this.headers[i].r + '_' + this.headers[i].c + ' ';			out +='"';		}		var style = ' style="';		if (this.borderColor != null) style += 'border-color:' + this.borderColor + ';';		if (this.borderStyle != null) style += 'border-style:' + this.borderStyle + ';';		if (this.borderWidth != null) style += 'border-width:' + this.borderWidth + ';';		if (this.bg != null) style += 'background-color:' + this.bg + ';';		if (this.style != null) style += this.style;		if (style != ' style="') out += style + '"';		out += this.extra + '>' + this.content;		if (this.th) out += '</th>';		else out += '</td>';		return out;	}	this.setPanels = function()	{		document.getElementById("aleft").style.background = "";		document.getElementById("acenter").style.background = "";		document.getElementById("aright").style.background = "";		document.getElementById("atop").style.background = "";		document.getElementById("amiddle").style.background = "";		document.getElementById("abottom").style.background = "";		document.getElementById("a" + this.align).style.background = "#F00";		document.getElementById("a" + this.valign).style.background = "#F00";		if (this.th) document.getElementById("THead").style.background = "#F00";		else document.getElementById("THead").style.background = "#FFF";		document.getElementById("abbr").value = (this.abbr == null)?"":this.abbr;		document.getElementById("axis").value = (this.axis == null)?"":this.axis;		document.getElementById("scope").value = (this.scope == null)?"":this.scope;		document.getElementById("bg").style.background = (this.bg == null)?"url(" + this.parent.parent.empty + ")":this.bg;		document.getElementById("border").style.background = (this.borderColor == null)?"url(" + this.parent.parent.empty + ")":this.borderColor;	}}
meta: 5635	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5635/6a8838771ce49507e80c261bd6432392d72df745/table-editor.js/clean/fudge/wysiwyg/plugins/table_editing/table-editor.js