From 869ab68f85e2b233f58854d5cd4fe7845630738a Mon Sep 17 00:00:00 2001 From: Rick Falkvinge Date: Sun, 11 Feb 2018 13:04:59 +0100 Subject: [PATCH] Progress work --- Site/Controls/v5/Base/ProgressBar.ascx | 4 ++++ Site/Pages/v5/Financial/FileExpenseClaim.aspx | 2 ++ 2 files changed, 6 insertions(+) diff --git a/Site/Controls/v5/Base/ProgressBar.ascx b/Site/Controls/v5/Base/ProgressBar.ascx index 6d880639..3432c877 100644 --- a/Site/Controls/v5/Base/ProgressBar.ascx +++ b/Site/Controls/v5/Base/ProgressBar.ascx @@ -31,6 +31,8 @@ { // This function primarily gets called via a socket handler invoked on the master page, but also from our fallback polling. + alertify.log(newProgress); // debug + if (newProgress > <%=this.ClientID%>_lastProgress) { $("#Div_<%=this.ClientID %>_ProgressBar .progressbar-value").animate( @@ -77,6 +79,8 @@ function <%= this.ClientID%>_progressFallbackPoll() { <%=this.ClientID%>_nextPollTimer = null; + alertify.log("ProgressPollTimer"); // debug + SwarmopsJS.ajaxCall( "/Automation/Json-ByGuid.aspx/GetNonsocketProgress", { guid: '<%= this.Guid%>' }, diff --git a/Site/Pages/v5/Financial/FileExpenseClaim.aspx b/Site/Pages/v5/Financial/FileExpenseClaim.aspx index 161bb2f6..0322262c 100644 --- a/Site/Pages/v5/Financial/FileExpenseClaim.aspx +++ b/Site/Pages/v5/Financial/FileExpenseClaim.aspx @@ -106,10 +106,12 @@ } function onExpensifyProgressHalfway() { + alertify.log("OnExpensifyProgressHalfway"); // debug $('#divUploadExpensify').slideUp().fadeOut(); } function onExpensifyProgressComplete() { + alertify.log("OnExpensifyProgressComplete"); // debug <%=this.ProgressExpensify.ClientID%>_hide(); <%=this.ProgressExpensifyFake.ClientID%>_show(); $('#divUploadExpensify').hide();