metadata: If any field focus on add field

This commit is contained in:
Vincent LAURENT 2023-04-20 15:44:59 +02:00
parent 4965d7878b
commit 4b0ca82652
1 changed files with 2 additions and 0 deletions

View File

@ -61,6 +61,8 @@ var loadPDF = async function(pdfBlob, filename, pdfIndex) {
}
if(document.querySelector('.input-metadata input')) {
document.querySelector('.input-metadata input').focus();
} else {
document.getElementById('input_metadata_key').focus();
}
});
}, function (reason) {