From 27bda4d1c685ad85e78d687048c9dbb4c218e691 Mon Sep 17 00:00:00 2001 From: SebClem Date: Sat, 30 Apr 2022 15:19:47 +0200 Subject: [PATCH] :ambulance: Fix multiple upload --- .../rootfs/opt/nextcloud_backup/public/js/index.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/nextcloud_backup/rootfs/opt/nextcloud_backup/public/js/index.js b/nextcloud_backup/rootfs/opt/nextcloud_backup/public/js/index.js index fb60f04..c3fbc68 100644 --- a/nextcloud_backup/rootfs/opt/nextcloud_backup/public/js/index.js +++ b/nextcloud_backup/rootfs/opt/nextcloud_backup/public/js/index.js @@ -29,13 +29,15 @@ function updateDynamicListeners() { console.log(id); }); let manual_back_list = $(".manual-back-list"); - manual_back_list.off(); + manual_back_list.unbind(); manual_back_list.on("click", function () { let id = this.getAttribute("data-id"); let name = this.getAttribute("data-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"); console.log(to_restore); restore(to_restore);