diff --git a/tabeleditor.inc.php b/tabeleditor.inc.php index eebc831..5aecccc 100644 --- a/tabeleditor.inc.php +++ b/tabeleditor.inc.php @@ -101,7 +101,7 @@ var entry_name = "__buttons_"+cellid; var entry = document.getElementById(entry_name); - elm.style = backuped_style; + elm.style.cssText = backuped_style; if (elm.initial_value != value) { elm.style.color= "red"; document.getElementById("__buttons").style.visibility = "visible"; @@ -172,7 +172,7 @@ var container = document.querySelector('.style_td'); var style = window.getComputedStyle(container); - backuped_style = elm.style; + backuped_style = elm.style.cssText; elm.value = value; elm.style.width = (e.target.clientWidth-5) + "px";