From 0341f208a4dcf46b06c25f88d96ffe1485588939 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20=C3=96sterreicher?= Date: Thu, 6 Dec 2007 07:42:52 +0000 Subject: [PATCH] --- content/tempus.js.php | 31 +++++++++++++++++++++++++++++-- 1 file changed, 29 insertions(+), 2 deletions(-) diff --git a/content/tempus.js.php b/content/tempus.js.php index 0eb03d7d9..a5103d8e4 100644 --- a/content/tempus.js.php +++ b/content/tempus.js.php @@ -1,4 +1,24 @@ , + * Andreas Oesterreicher and + * Rudolf Hangl . + */ include('../vilesci/config.inc.php'); ?> var menuUndoDatasource=0; @@ -8,6 +28,7 @@ var menuUndoDatasource=0; function Progressmeter(progress_id) { var id=progress_id; + var runningprogress=0; this.StopPM=StopPM; this.StartPM=StartPM; @@ -15,12 +36,18 @@ function Progressmeter(progress_id) { // Progressmeter starten. document.getElementById(id).setAttribute('mode','undetermined'); + runningprogress++; } function StopPM() { - // Progressmeter starten. - document.getElementById(id).setAttribute('mode','determined'); + runningprogress--; + if(runningprogress<0) + runningprogress=0; + + // Progressmeter stoppen wenn alle fertig sind + if(runningprogress==0) + document.getElementById(id).setAttribute('mode','determined'); } } // ------ EndOf CLASS Progressmeter ------------------------------