From a2b074e707304f561bfe2d7a977d60b7498ebf95 Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Fri, 18 Feb 2022 11:18:54 +0100 Subject: [PATCH] problem display none for adding tag form --- ereuse_devicehub/static/js/main_inventory.js | 6 ++++++ ereuse_devicehub/templates/inventory/addDevicestag.html | 2 +- ereuse_devicehub/templates/inventory/device_list.html | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ereuse_devicehub/static/js/main_inventory.js b/ereuse_devicehub/static/js/main_inventory.js index 32bf1705..83ed993d 100644 --- a/ereuse_devicehub/static/js/main_inventory.js +++ b/ereuse_devicehub/static/js/main_inventory.js @@ -51,6 +51,7 @@ function deviceSelect() { $("#datawipeModal .btn-primary").show(); $("#addingTagModal .pol").hide(); + $("#addingTagModal .btn-primary").show(); } } @@ -64,6 +65,11 @@ function removeTag() { } } +function addTag() { + deviceSelect(); + $("#addingTagModal").click(); +} + function newTrade(action) { var title = "Trade " var user_to = $("#user_to").data("email"); diff --git a/ereuse_devicehub/templates/inventory/addDevicestag.html b/ereuse_devicehub/templates/inventory/addDevicestag.html index 9c157729..cb929d37 100644 --- a/ereuse_devicehub/templates/inventory/addDevicestag.html +++ b/ereuse_devicehub/templates/inventory/addDevicestag.html @@ -24,7 +24,7 @@ diff --git a/ereuse_devicehub/templates/inventory/device_list.html b/ereuse_devicehub/templates/inventory/device_list.html index 205252aa..e917a843 100644 --- a/ereuse_devicehub/templates/inventory/device_list.html +++ b/ereuse_devicehub/templates/inventory/device_list.html @@ -198,7 +198,7 @@