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/434918b400ee690fa5c88806ee47f5494d783b31/table-editor.js/clean/fudge/wysiwyg/plugins/table_editing/table-editor.js