From f300343cc588d9ec538783ed5766848a6fce7910 Mon Sep 17 00:00:00 2001 From: sparkyx Date: Thu, 29 Jun 2006 20:49:01 +0000 Subject: [PATCH] task 5689 Improve calc online : bug function clean --- html/js/calc.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/html/js/calc.js b/html/js/calc.js index 2fa8756b1..ba8805d10 100644 --- a/html/js/calc.js +++ b/html/js/calc.js @@ -95,10 +95,14 @@ if ( counter%2 != 0 ) function Clean() { str=""; + counter=0; + val=""; this.document.getElementById('listing').innerHTML=""; this.document.getElementById('result').innerHTML=""; this.document.getElementById('sub_total').innerHTML=""; this.document.getElementById('inp').value=""; + this.document.getElementById('inp').focus(); + } function Compute()