From c331b12f1daaa640917d607942e084835655bc5c Mon Sep 17 00:00:00 2001 From: Rick Falkvinge Date: Mon, 4 Apr 2016 03:10:53 +0200 Subject: [PATCH] Added config check on Init (test 1) --- Site5/Pages/v5/Public/Initialize.aspx | 82 +++++++++++++++++++----- Site5/Pages/v5/Public/Initialize.aspx.cs | 22 +++++++ 2 files changed, 89 insertions(+), 15 deletions(-) diff --git a/Site5/Pages/v5/Public/Initialize.aspx b/Site5/Pages/v5/Public/Initialize.aspx index c543b6e3..deb95008 100644 --- a/Site5/Pages/v5/Public/Initialize.aspx +++ b/Site5/Pages/v5/Public/Initialize.aspx @@ -326,10 +326,47 @@ return isValid; } - // Start by disabling Finish + // Disable Finish and Next $('a.buttonFinish').addClass("buttonDisabled"); + DisableNext(); + // Run threading tests + + $.ajax({ + type: "POST", + url: "/Pages/v5/Public/Initialize.aspx/BeginTestThreads1", // TODO: Remove the 1 + data: "{}", + contentType: "application/json; charset=utf-8", + dataType: "json", + success: function () { + setTimeout(function() { + $.ajax({ + type: "POST", + url: "/Pages/v5/Public/Initialize.aspx/CheckThreadsWork", + data: "{}", + contentType: "application/json; charset=utf-8", + dataType: "json", + success: function(msg) { + if (msg.d) { + $('#DivStep1Diagnostics').fadeOut(200, 'swing', function() { + $('#DivStep1TestSuccess').fadeIn(200); + EnableNext(); + }); + } else { + $('#DivStep1Diagnostics').fadeOut(200, 'swing', function() { + $('#DivStep1FaultThreading').fadeIn(200); + }); + } + } + }); + + }, 2000); + }, + error: function() { + $('#DivStep1Diagnostics').fadeOut(200, 'swing', function () { $('#DivStep1FaultAjax').fadeIn(200); }); + } + }); }); // end of document.ready var disableNext = false; @@ -584,21 +621,36 @@ -
-

Welcome to Swarmops

-

Congratulations! Since you're reading this, you have successfully installed the Swarmops packages and set up an Apache virtual server using mod_mono.

- -

However, before we proceed, we need to make sure that you are indeed the sysadmin of this server, and not a remote bot who just discovered an unfinished Swarmops installation. To cross that bridge, answer these three simple questions:

- -