From ece0c8d3c9e82d5bcdf4b5c7ed93201a99be59b2 Mon Sep 17 00:00:00 2001 From: Dindault Lucas <64981161+LaBisquerie@users.noreply.github.com> Date: Thu, 24 Oct 2024 18:04:43 +0200 Subject: [PATCH] =?UTF-8?q?Remove=20the=20=E2=80=9C>=E2=80=9D=20selector?= =?UTF-8?q?=20to=20make=20the=20selector=20more=20flexible?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- js/mailalerts.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/mailalerts.js b/js/mailalerts.js index dc8dad0..8086399 100644 --- a/js/mailalerts.js +++ b/js/mailalerts.js @@ -28,7 +28,7 @@ function addNotification(productId, productAttributeId) { $.ajax({ type: 'POST', url: $('div.js-mailalert').data('url'), - data: 'id_product='+productId+'&id_product_attribute='+productAttributeId+'&customer_email='+$('div.js-mailalert > input[type=email]').val(), + data: 'id_product='+productId+'&id_product_attribute='+productAttributeId+'&customer_email='+$('div.js-mailalert input[type=email]').val(), success: function (resp) { resp = JSON.parse(resp);