🚑 Fix multiple upload

This commit is contained in:
SebClem 2022-04-30 15:19:47 +02:00
parent 084af91620
commit 27bda4d1c6
Signed by: sebclem
GPG Key ID: 5A4308F6A359EA50

View File

@ -29,13 +29,15 @@ function updateDynamicListeners() {
console.log(id); console.log(id);
}); });
let manual_back_list = $(".manual-back-list"); let manual_back_list = $(".manual-back-list");
manual_back_list.off(); manual_back_list.unbind();
manual_back_list.on("click", function () { manual_back_list.on("click", function () {
let id = this.getAttribute("data-id"); let id = this.getAttribute("data-id");
let name = this.getAttribute("data-name"); let name = this.getAttribute("data-name");
manualBackup(id, name); manualBackup(id, name);
}); });
$(".restore").click(function () { let restore_btn = $(".restore");
restore_btn.unbind();
restore_btn.click(function () {
let to_restore = this.getAttribute("data-id"); let to_restore = this.getAttribute("data-id");
console.log(to_restore); console.log(to_restore);
restore(to_restore); restore(to_restore);