From 2c10ff2521cf9c8e68d9661e0870a18054f7ff9a Mon Sep 17 00:00:00 2001 From: Rick Falkvinge Date: Sun, 1 Oct 2017 17:00:38 +0200 Subject: [PATCH] Broadcasting PDF conversion progress --- Site/Controls/v5/Base/FileUpload.ascx | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/Site/Controls/v5/Base/FileUpload.ascx b/Site/Controls/v5/Base/FileUpload.ascx index 86acd081..88230ac7 100644 --- a/Site/Controls/v5/Base/FileUpload.ascx +++ b/Site/Controls/v5/Base/FileUpload.ascx @@ -37,16 +37,9 @@ if (pdfConversionNeeded) { $('#<%=this.ClientID %>_DivProgressPdfConversion').progressbar({ value: 1 }); $('#<%=this.ClientID %>_DivMainControlArea').fadeOut('400', function () { $('#<%=this.ClientID %>_DivPdfConverting').fadeIn(); }); - var jsonData = {}; - jsonData.guid = '<%=GuidString%>'; - SwarmopsJS.ajaxCall("/Automation/UploadFileHandler.ashx/BeginPdfConversion", - jsonData, - function() { - // Successful start - alertify.success('Started PDF conversion thread'); - setTimeout(function() { <%=this.ClientID%>_repingPdfProgress() }, 500); - }); + // Conversion progress will be sent through the socket, sent to our function by the master page + } else { <% if (!String.IsNullOrEmpty(this.ClientUploadCompleteCallback))