Fix image preview dialog

This commit is contained in:
Jay Trees 2022-03-04 09:32:56 +01:00
parent 52d4880510
commit 9030db8a8d
2 changed files with 5 additions and 5 deletions

View file

@ -110,12 +110,12 @@ $(function () {
* Image
*/
$(document).on('click', '.image.preview', function() {
var modalImage = $('.modal.image');
var modalImage = $('.modal.preview');
modalImage
.modal({
onApprove: function(buttonApprove) {
var formImage = modalImage.find('form.image');
var formImage = modalImage.find('form.preview');
var formData = new URLSearchParams(new FormData(formImage[0]));
formImage.addClass('loading');

View file

@ -134,15 +134,15 @@ $referer = '/?page=wishlists&wishlist=' . $wish->wishlist;
</div>
</main>
<!-- Image -->
<div class="ui small modal image">
<!-- Preview -->
<div class="ui small modal preview">
<div class="header">
Image
</div>
<div class="content">
<p>Define a new URL to be used as a preview.</p>
<form class="ui form image">
<form class="ui form preview">
<input type="hidden" name="wish_id" value="<?= $_GET['id'] ?>" />
<div class="field">