From dada6cc32824cfea79fb69e30642d82afdab5f0f Mon Sep 17 00:00:00 2001 From: RubenPX Date: Tue, 12 Apr 2022 14:06:41 +0200 Subject: [PATCH] Fix close dialog when apply actions --- ereuse_devicehub/static/js/main_inventory.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ereuse_devicehub/static/js/main_inventory.js b/ereuse_devicehub/static/js/main_inventory.js index 75006a2f..bf2fdf43 100644 --- a/ereuse_devicehub/static/js/main_inventory.js +++ b/ereuse_devicehub/static/js/main_inventory.js @@ -282,13 +282,13 @@ async function processSelectedDevices() { this.notifyUser("Fail to remove devices from selected lot/s", error.responseJSON.message, true); } } - requestCount += 1 if (requestCount == this.list.length) { this.reRenderTable(); - this.list = [] + this.list = []; } }) + document.getElementById("dropDownLotsSelector").classList.remove("show"); } /**