summaryrefslogtreecommitdiff
path: root/misc/progress.js
diff options
context:
space:
mode:
Diffstat (limited to 'misc/progress.js')
-rw-r--r--misc/progress.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/misc/progress.js b/misc/progress.js
index 66013d4e8..e7c289e31 100644
--- a/misc/progress.js
+++ b/misc/progress.js
@@ -42,7 +42,7 @@ progressBar.prototype.setProgress = function (percentage, status) {
}
}
if (this.callback) {
- this.callback(percentage, status);
+ this.callback(percentage, status, this);
}
}
@@ -82,8 +82,8 @@ progressBar.prototype.receivePing = function (string, xmlhttp, pb) {
}
// Split into values
var matches = string.length > 0 ? string.split('|') : [];
+ pb.timer = setTimeout(function() { pb.sendPing(); }, pb.delay);
if (matches.length >= 2) {
pb.setProgress(matches[0], matches[1]);
}
- pb.timer = setTimeout(function() { pb.sendPing(); }, pb.delay);
}