]> git.mxchange.org Git - mailer.git/blobdiff - js/install-common.js
Added update_year.sh (still not fully flexible) and updated all years with it.
[mailer.git] / js / install-common.js
index f2cc0b7be89fad854b447d6865a66bee0cce0ec1..b7014e37a42659c156663e8d1883d3cc360a00cc 100644 (file)
@@ -1,13 +1,8 @@
 /**
  * JavaScript for common installer functions
  * --------------------------------------------------------------------
- * $Revision::                                                        $
- * $Date::                                                            $
- * $Tag:: 0.2.1-FINAL                                                 $
- * $Author::                                                          $
- * --------------------------------------------------------------------
  * Copyright (c) 2003 - 2009 by Roland Haeder
- * Copyright (c) 2009 - 2013 by Mailer Developer Team
+ * Copyright (c) 2009 - 2015 by Mailer Developer Team
  * For more information visit: http://mxchange.org
  *
  * This program is free software; you can redistribute it and/or modify
@@ -36,6 +31,7 @@ var failedStep = '';
 installationSteps[0] = 'import_tables_sql';
 installationSteps[1] = 'import_menu_sql';
 installationSteps[2] = 'install_extensions';
+installationSteps[3] = 'register_first_admin';
 
 // Always keep as last step
 installationSteps[installationSteps.length] = 'write_local_config';
@@ -66,6 +62,9 @@ function doFinishInstallation () {
 
 // Does the "installation loop"
 function doInstallationLoop () {
+       // Reset counter
+       counterSuccess = 0;
+
        // For-loop for all installation steps
        for (var i = 0; i < installationSteps.length; i++) {
                // Output message
@@ -91,7 +90,10 @@ function doInstallationLoop () {
        if (counterSuccess != installationSteps.length) {
                // Display error message
                displayErrorWindow('install', getAjaxContent() + ':' + counterSuccess + '/' + installationSteps.length + ':' + failedStep);
-       } // END - if
+       } else {
+               // Redirect to admin.php
+               document.location.href = 'admin.php';
+       }
 }
 
 // Sends an "installation step" request out