From 9cb4bfdf3db3ab8a51677e569cc7d708e20aa79d Mon Sep 17 00:00:00 2001 From: Vincent LAURENT Date: Sat, 30 Oct 2021 10:43:15 +0200 Subject: [PATCH] =?UTF-8?q?Pas=20de=20curseur=20si=20le=20svg=20n'a=20pas?= =?UTF-8?q?=20encore=20=C3=A9t=C3=A9=20cr=C3=A9=C3=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/js/app.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/public/js/app.js b/public/js/app.js index 78ad592..056975c 100644 --- a/public/js/app.js +++ b/public/js/app.js @@ -114,6 +114,11 @@ loadingTask.promise.then(function(pdf) { stateAddLock(false); var input_selected = document.querySelector('input[name="svg_2_add"]:checked'); + + if(!input_selected.value.match(/^data:/) && input_selected.value != "text") { + input_selected = null; + } + if(input_selected) { document.body.style.setProperty('cursor', 'copy'); } else {