From 7375eb298c9eaa4b7843d7e69e8ce77e6b15cb61 Mon Sep 17 00:00:00 2001 From: Vincent LAURENT Date: Mon, 1 Nov 2021 01:00:40 +0100 Subject: [PATCH] =?UTF-8?q?Bouton=20supprimer=20un=20svg=20n'est=20plus=20?= =?UTF-8?q?cach=C3=A9=20lorsque=20le=20svg=20est=20actif?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/js/app.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/public/js/app.js b/public/js/app.js index eab2ff3..56fcd26 100644 --- a/public/js/app.js +++ b/public/js/app.js @@ -129,14 +129,8 @@ loadingTask.promise.then(function(pdf) { document.querySelectorAll('.btn-svg').forEach(function(item) { if(input_selected && item.htmlFor == input_selected.id) { item.style.setProperty('cursor', 'copy'); - if(item.querySelector('.btn-svg-list-suppression')) { - item.querySelector('.btn-svg-list-suppression').classList.add('d-none'); - } } else { item.style.removeProperty('cursor'); - if(item.querySelector('.btn-svg-list-suppression')) { - item.querySelector('.btn-svg-list-suppression').classList.remove('d-none'); - } } });