--- a/tests.js Thu Sep 22 15:21:27 2011 -0600
+++ b/tests.js Fri Sep 23 12:17:35 2011 -0600
@@ -45,12 +45,7 @@
function updateAlertRowStyle() {
//@{
var checked = document.querySelector("#alert-checkbox").checked;
- var style = document.querySelector("#alerts");
- if (checked && !/^\/\*/.test(style.textContent)) {
- style.textContent = "/* " + style.textContent + " */";
- } else if (!checked) {
- style.textContent = style.textContent.replace(/(\/\* | \*\/)/g, "");
- }
+ document.querySelector("#alerts").disabled = checked;
localStorage["display-alerts"] = checked;
}
//@}