1
0
mirror of https://github.com/24eme/signaturepdf.git synced 2023-08-25 09:33:08 +02:00

metadata: bug loading value

This commit is contained in:
Vincent LAURENT 2023-04-20 16:11:53 +02:00
parent c89c8d53dd
commit a04e26d2ce
2 changed files with 2 additions and 2 deletions

View File

@ -104,7 +104,7 @@ var pageRender = async function(pageIndex) {
var addMetadata = function(key, value, type, focus) {
let input = document.querySelector('.input-metadata input[name="'+key+'"]');
if(input && input.value === null) {
if(input && !input.value) {
input.value = value;
}
if(input && focus) {

View File

@ -102,6 +102,6 @@
<script>
var defaultFields = <?php echo json_encode(isset($METADATA_DEFAULT_FIELDS) ? $METADATA_DEFAULT_FIELDS : array()); ?>;
</script>
<script src="/js/metadata.js?202212070154"></script>
<script src="/js/metadata.js?202304201611"></script>
</body>
</html>