* Remove toggle link for debug output.
This commit is contained in:
parent
4ab4f0ef9c
commit
9874ec1cd9
1 changed files with 1 additions and 6 deletions
|
@ -362,17 +362,12 @@ public final class ResponseTrans extends Writer implements Serializable {
|
|||
public void debug(Object message) {
|
||||
if (debugBuffer == null) {
|
||||
debugBuffer = new StringBuffer();
|
||||
debugBuffer.append("<a href=\"#helma-debug-area\" name=\"helma-debug-area\" ");
|
||||
debugBuffer.append("class=\"helma-debug-link\" style=\"font-size: small;\" onclick=\"");
|
||||
debugBuffer.append("var s = this.nextSibling.style; s.display = s.display == 'none' ? '' : 'none'; return true;");
|
||||
debugBuffer.append("\">[toggle debug info]</a>");
|
||||
debugBuffer.append("<div id=\"helma-debug-area\" style=\"display: none; border-top: 1px solid black;\">");
|
||||
}
|
||||
|
||||
String str = (message == null) ? "null" : message.toString();
|
||||
|
||||
debugBuffer.append("<div class=\"helma-debug-line\" style=\"background: yellow; ");
|
||||
debugBuffer.append("color: black; border-bottom: 1px solid black;\">");
|
||||
debugBuffer.append("color: black; border-top: 1px solid black;\">");
|
||||
debugBuffer.append(str);
|
||||
debugBuffer.append("</div>");
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue