- // Wait here
- window.setTimeout('doWait()', 500);
-}
-
-// Do wait
-function doWait () {
- // Is still something to do?
- if ((failedStep == '') && (counterSuccess != installationSteps.length)) {
- // Wait one round more
- window.setTimeout('doWait()', 500);
- } else if ((failedStep == '') && (counterSuccess == installationSteps.length)) {
- // Close window
- closeProgressWindow('install', true, false);
-
- // Redirect to old 'finished' page
- document.location.href = 'admin.php';
- } else if (failedStep != '') {
- // Something happens that should not happen!
- displayErrorWindow('install', 'failedStep=' + failedStep);
- }
-}
-
-// Update progress bar
-function updateProgressBar () {
- // Increment counter
- counterSuccess++;
-
- // Do only update <= 100% values
- if (counterSuccess <= installationSteps.length) {
- // Update progress bar
- $('#progressbar').progressbar({
- value: (counterSuccess / installationSteps.length * 100)
- });
- } // END - if