From a304ca8fe4aebe3063eef8b935fe1881dfeaa38e Mon Sep 17 00:00:00 2001 From: Matthew Somerville Date: Wed, 13 Mar 2019 13:37:09 +0000 Subject: Fix duplicate email alert signup. --- web/cobrands/fixmystreet/fixmystreet.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/cobrands/fixmystreet/fixmystreet.js b/web/cobrands/fixmystreet/fixmystreet.js index 54ecb3662..0a1e1d2cc 100644 --- a/web/cobrands/fixmystreet/fixmystreet.js +++ b/web/cobrands/fixmystreet/fixmystreet.js @@ -977,7 +977,7 @@ $.extend(fixmystreet.set_up, { e.preventDefault(); var form = $('
').attr({ method:'post', action:"/alert/subscribe" }); form.append($('')); - $(this).closest('.js-alert-list').find('input[type=text], input[type=hidden], input[type=radio]:checked').each(function() { + $(this).closest('.js-alert-list').find('input[type=email], input[type=text], input[type=hidden], input[type=radio]:checked').each(function() { var $v = $(this); $('').attr({ name:$v.attr('name'), value:$v.val(), type:'hidden' }).appendTo(form); }); -- cgit v1.2.3