mirror of
https://github.com/24eme/signaturepdf.git
synced 2023-08-25 09:33:08 +02:00
Après l'ajout d'un svg l'élément ajouté est séléctionné
This commit is contained in:
parent
9edfd9e840
commit
4f2d5e3cf7
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user