diff options
author | Matthew Somerville <matthew@mysociety.org> | 2020-07-29 12:52:43 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2020-07-29 12:52:43 +0100 |
commit | 82e7b51deb93d83618e99d9e092951695f221906 (patch) | |
tree | e248fff10dee9a110a0c18097e34edd04b756c2e /web | |
parent | 5cff522976b840167b0ed7a1226c16b272238d06 (diff) |
Include textarea in alert email form copy.
The recaptcha used by fixmystreet.com uses a textarea.
Diffstat (limited to 'web')
-rw-r--r-- | web/cobrands/fixmystreet/fixmystreet.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web/cobrands/fixmystreet/fixmystreet.js b/web/cobrands/fixmystreet/fixmystreet.js index ca36d5b46..032140298 100644 --- a/web/cobrands/fixmystreet/fixmystreet.js +++ b/web/cobrands/fixmystreet/fixmystreet.js @@ -1117,7 +1117,7 @@ $.extend(fixmystreet.set_up, { e.preventDefault(); var form = $('<form/>').attr({ method:'post', action:"/alert/subscribe" }); form.append($('<input name="alert" value="Subscribe me to an email alert" type="hidden" />')); - $(this).closest('.js-alert-list').find('input[type=email], input[type=text], input[type=hidden], input[type=radio]:checked').each(function() { + $(this).closest('.js-alert-list').find('textarea, input[type=email], input[type=text], input[type=hidden], input[type=radio]:checked').each(function() { var $v = $(this); $('<input/>').attr({ name:$v.attr('name'), value:$v.val(), type:'hidden' }).appendTo(form); }); |