mirror of
https://github.com/simon987/Simple-Incremental-Search-Tool.git
synced 2025-12-14 23:59:04 +00:00
Fixed some bugs. Started auto complete
This commit is contained in:
@@ -79,14 +79,22 @@
|
||||
|
||||
try {
|
||||
|
||||
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 (currentTask.total === 0) {
|
||||
|
||||
if (percent === 100) {
|
||||
bar.classList.add("bg-success")
|
||||
document.getElementById("task-label-" + currentTask.id).innerHTML = "Calculating file count...";
|
||||
|
||||
} else {
|
||||
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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user