/**
* JavaScript for common installer functions
* --------------------------------------------------------------------
- * $Revision:: $
- * $Date:: $
- * $Tag:: 0.2.1-FINAL $
- * $Author:: $
- * --------------------------------------------------------------------
* Copyright (c) 2003 - 2009 by Roland Haeder
- * Copyright (c) 2009 - 2012 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
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';
// 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
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