summaryrefslogtreecommitdiff
path: root/www/js/importer.js
diff options
context:
space:
mode:
Diffstat (limited to 'www/js/importer.js')
-rw-r--r--www/js/importer.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/www/js/importer.js b/www/js/importer.js
index caac692..9576768 100644
--- a/www/js/importer.js
+++ b/www/js/importer.js
@@ -391,7 +391,7 @@ Rdxport.Upload.prototype.onmessage = function(event) {
console.log(data);
if (this.file && !this.sendingFile) {
this.sendingFile = true;
-
+
var command = {
type: "POST",
contentType: "application/octet-stream",
@@ -403,11 +403,13 @@ Rdxport.Upload.prototype.onmessage = function(event) {
};
$.ajax('https://import.helsinki.at/upload/' + importer.username + '/' + data.ID, command);
}
+ this.isNew = true;
this.group.fetchCarts();
this.groupView.uploadProgress(this);
break;
case Rdxport.Importer.TYPE_PROGRESS:
//console.log(data);
+ this.isNew = false;
this.uploadprogress.current = data.CURRENT;
this.uploadprogress.total = data.TOTAL;
this.uploadprogress.progress = data.PROGRESS;