summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorianb <devnull@localhost>2005-05-14 08:42:36 +0000
committerianb <devnull@localhost>2005-05-14 08:42:36 +0000
commit0db5755d9b56a440cc5986c21cc55f10b48ed19b (patch)
treeec427c1d62779973fe095454baf2e0a873840636 /examples
parenta005db605c008ace3f7c26696226b2b12510405e (diff)
downloadpaste-0db5755d9b56a440cc5986c21cc55f10b48ed19b.tar.gz
Fixed clear button
Diffstat (limited to 'examples')
-rw-r--r--examples/console/templates/index.pt2
-rw-r--r--examples/console/web/static/command.js3
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('&', '&amp;').replace('<', '&lt;');
}
-function clear() {
- alert(output_html);
+function clear_output() {
output_html = '';
refresh_display();
return false;