diff --git a/server/static/index.html b/server/static/index.html
index 30901fd..696f0e8 100644
--- a/server/static/index.html
+++ b/server/static/index.html
@@ -15,6 +15,7 @@
diff --git a/server/static/worker.js b/server/static/worker.js
index 150e40e..b1d3cf1 100644
--- a/server/static/worker.js
+++ b/server/static/worker.js
@@ -22,7 +22,6 @@ function deletecard(jobid) {
};
}
-
function addcard(jobid, title) {
var text = ' ' + title + '
';
$('#cards').append(text);
@@ -30,21 +29,13 @@ function addcard(jobid, title) {
}
function failcard(jobid, title) {
- deletecard(jobid, title);
-
- var text = ' ' + title + ': Export failed.
';
- $('#cards').append(text);
+ var text = ' ' + title + ': Export failed.
';
+ $("#" + jobid).html(text);
}
-
function finishcard(jobid, title, video) {
- deletecard(jobid);
- if (!video) {
- var text = ' ' + title + '
';
- } else {
- var text = ' ' + title + '
';
- };
- $('#cards').append(text);
+ var text = ' ' + title + '
';
+ $("#" + jobid).html(text);
var counter = 0;
var interval = setInterval(function() {