Skip to content

Commit

Permalink
require field after dialog reopen with image filled in
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexandru Marian Stancioiu committed Jul 26, 2024
1 parent 82836b6 commit 1f6388e
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,7 @@
}

// update the alt field
$altTextField.adaptTo("foundation-field").setRequired(!isDecorative.checked);
altTextFromPage = $(dialogContentSelector).find(pageImageThumbnailImageSelector).attr("alt");
if (imageFromPageImage && imageFromPageImage.checked) {
altFromPageTuple.seedTextValue(altTextFromPage);
Expand Down

0 comments on commit 1f6388e

Please sign in to comment.