1
0
Fork 0
mirror of https://github.com/24eme/signaturepdf synced 2024-06-04 15:02:29 +02:00

Après l'ajout d'un svg l'élément ajouté est séléctionné

This commit is contained in:
Vincent LAURENT 2021-10-03 10:12:55 +02:00
parent 9edfd9e840
commit 4f2d5e3cf7

View file

@ -136,7 +136,13 @@ loadingTask.promise.then(function(pdf) {
svgCollections.push(svgItem);
displaysSVG();
localStorage.setItem('svgCollections', JSON.stringify(svgCollections));
document.querySelector('#svg_list label:last-child').click();
var svg_list_id = "svg_list";
if(svgItem.type) {
svg_list_id = svg_list_id + "_" + svgItem.type;
}
document.querySelector('#'+svg_list_id+' label:last-child').click();
});
function dataURLtoBlob(dataurl) {