Text boxes prefilled with existing information

This commit is contained in:
Michał 2022-09-07 11:00:53 +00:00
parent 274707c80b
commit 051debfdf0

View file

@ -274,6 +274,8 @@
</form>";
flyoutShow(header, description, actionBox);
$('#descriptionInput').val("<?php echo $image['alt']; ?>");
$("#descriptionConfirm").submit(function(event) {
event.preventDefault();
var descriptionInput = $("#descriptionInput").val();
@ -308,6 +310,8 @@
</form>";
flyoutShow(header, description, actionBox);
$('#tagsInput').val("<?php echo $image['tags']; ?>");
$("#tagsConfirm").submit(function(event) {
event.preventDefault();
var tagsInput = $("#tagsInput").val();