diff --git a/tubearchivist/static/progress.js b/tubearchivist/static/progress.js
index 58916e08..e26002c2 100644
--- a/tubearchivist/static/progress.js
+++ b/tubearchivist/static/progress.js
@@ -44,7 +44,7 @@ function buildMessage(responseData, dataOrigin) {
messageBox.classList.add(messageData['level'], 'notification');
messageBox.innerHTML = `
${messageData.title}
- ${messageData.messages.join('
')}
`
+ ${messageData.messages.join('
')}
`;
let taskControlIcons = document.createElement('div');
taskControlIcons.classList = 'task-control-icons';
if ('api-stop' in messageData) {
@@ -98,16 +98,16 @@ function buildStopIcon(taskId) {
stopIcon.setAttribute('src', '/static/img/icon-stop.svg');
stopIcon.setAttribute('alt', 'stop icon');
stopIcon.setAttribute('onclick', 'stopTask(this)');
- return stopIcon
+ return stopIcon;
}
function buildKillIcon(taskId) {
let killIcon = document.createElement('img');
killIcon.setAttribute('id', 'kill-icon');
- stopIcon.setAttribute('data', taskId);
+ killIcon.setAttribute('data', taskId);
killIcon.setAttribute('title', 'Kill Task');
killIcon.setAttribute('src', '/static/img/icon-close.svg');
killIcon.setAttribute('alt', 'kill icon');
killIcon.setAttribute('onclick', 'killTask(this)');
- return killIcon
+ return killIcon;
}
diff --git a/tubearchivist/static/script.js b/tubearchivist/static/script.js
index 427cb253..0f12ff1d 100644
--- a/tubearchivist/static/script.js
+++ b/tubearchivist/static/script.js
@@ -231,14 +231,14 @@ function deleteQueue(button) {
function stopTask(icon) {
let taskId = icon.getAttribute('data');
let apiEndpoint = `/api/task-id/${taskId}/`;
- apiRequest(apiEndpoint, 'POST', { command: 'stop'});
+ apiRequest(apiEndpoint, 'POST', { command: 'stop' });
document.getElementById('stop-icon').remove();
}
function killTask(icon) {
let taskId = icon.getAttribute('data');
let apiEndpoint = `/api/task-id/${taskId}/`;
- apiRequest(apiEndpoint, 'POST', { command: 'kill'});
+ apiRequest(apiEndpoint, 'POST', { command: 'kill' });
document.getElementById('kill-icon').remove();
}