mirror of
https://github.com/24eme/signaturepdf
synced 2024-06-03 14:32:13 +02:00
metadata: bug loading value
This commit is contained in:
parent
c89c8d53dd
commit
a04e26d2ce
|
@ -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) {
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue