From 9030db8a8d2f62a79799ada645bd03115b8a08ab Mon Sep 17 00:00:00 2001 From: Jay Trees Date: Fri, 4 Mar 2022 09:32:56 +0100 Subject: [PATCH] Fix image preview dialog --- src/assets/js/wish.js | 4 ++-- src/pages/wish.php | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/assets/js/wish.js b/src/assets/js/wish.js index 615d36ea..3680d8c6 100644 --- a/src/assets/js/wish.js +++ b/src/assets/js/wish.js @@ -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'); diff --git a/src/pages/wish.php b/src/pages/wish.php index 98854ccc..d49b2a11 100644 --- a/src/pages/wish.php +++ b/src/pages/wish.php @@ -134,15 +134,15 @@ $referer = '/?page=wishlists&wishlist=' . $wish->wishlist; - -