bulk indexing

This commit is contained in:
simon
2018-03-13 12:22:00 -04:00
parent e79a68ebe6
commit 9d75fc4d59
4 changed files with 54 additions and 16 deletions

View File

@@ -75,8 +75,15 @@
var percent = currentTask.parsed / currentTask.total * 100;
try {
document.getElementById("task-bar-" + currentTask.id).setAttribute("style", "width: " + percent + "%;");
var bar = document.getElementById("task-bar-" + currentTask.id);
bar.setAttribute("style", "width: " + percent + "%;");
document.getElementById("task-label-" + currentTask.id).innerHTML = currentTask.parsed + " / " + currentTask.total + " (" + percent.toFixed(2) + "%)";
if (percent === 100) {
bar.classList.add("bg-success")
}
} catch (e) {
window.reload();
}