added function setBg() for temporary reasons
This commit is contained in:
parent
5ba3ae46b7
commit
ad64933c56
1 changed files with 11 additions and 0 deletions
|
@ -2,6 +2,17 @@ function openColorPicker(name, text) {
|
|||
var cpWindow = window.open("<% root.url path="colorpicker" %>?name=" + name + "&text=" + text, "cpWindow", "toolbar=no,location=no,directories=no,status=no,scrollbars=no,resizable=yes,width=350,height=320");
|
||||
}
|
||||
|
||||
function setBg() {
|
||||
var c = document.getElementById("cp2_bgcolor").style.backgroundColor;
|
||||
document.body.style.backgroundColor = c;
|
||||
var tds = document.getElementsByTagName("td");
|
||||
for (var i in tds) {
|
||||
if (tds[i].style)
|
||||
tds[i].style.backgroundColor = c;
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
function setColorPreview(name, color) {
|
||||
color = parseColor(color);
|
||||
if (color)
|
||||
|
|
Loading…
Add table
Reference in a new issue