diff options
| author | ianb <devnull@localhost> | 2005-05-14 08:42:36 +0000 |
|---|---|---|
| committer | ianb <devnull@localhost> | 2005-05-14 08:42:36 +0000 |
| commit | 0db5755d9b56a440cc5986c21cc55f10b48ed19b (patch) | |
| tree | ec427c1d62779973fe095454baf2e0a873840636 /examples/console | |
| parent | a005db605c008ace3f7c26696226b2b12510405e (diff) | |
| download | paste-0db5755d9b56a440cc5986c21cc55f10b48ed19b.tar.gz | |
Fixed clear button
Diffstat (limited to 'examples/console')
| -rw-r--r-- | examples/console/templates/index.pt | 2 | ||||
| -rw-r--r-- | examples/console/web/static/command.js | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/examples/console/templates/index.pt b/examples/console/templates/index.pt index 109db97..26c7ff8 100644 --- a/examples/console/templates/index.pt +++ b/examples/console/templates/index.pt @@ -25,7 +25,7 @@ Multiline commands:<br> <textarea rows=4 cols=50 style="width: 100%" id="command_long"></textarea> Output: <button>run command</button> -<button type="button" onclick="clear()">clear output</button> +<button type="button" onclick="clear_output()">clear output</button> <br> <pre id="output" style="width: 100%; border: 1px solid black; background-color: #ddddff"> diff --git a/examples/console/web/static/command.js b/examples/console/web/static/command.js index 50146e2..ad7b87e 100644 --- a/examples/console/web/static/command.js +++ b/examples/console/web/static/command.js @@ -49,8 +49,7 @@ function html_quote(s) { return s.replace('&', '&').replace('<', '<'); } -function clear() { - alert(output_html); +function clear_output() { output_html = ''; refresh_display(); return false; |
