Progress work

This commit is contained in:
Rick Falkvinge
2018-02-11 13:04:59 +01:00
parent 23019199cc
commit 869ab68f85
2 changed files with 6 additions and 0 deletions
+4
View File
@@ -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%>' },
@@ -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();