From 1f95efcb7b0b8eb224834c930c9ec46b12c940ab Mon Sep 17 00:00:00 2001 From: Mark Steward Date: Mon, 7 Feb 2022 16:12:55 +0000 Subject: [PATCH] Fix sending profile form (#2389) Credentials no longer suggested in the Search box in 'Sending Profiles' --- static/js/src/app/sending_profiles.js | 5 +-- templates/sending_profiles.html | 50 +++++++++++++-------------- 2 files changed, 28 insertions(+), 27 deletions(-) diff --git a/static/js/src/app/sending_profiles.js b/static/js/src/app/sending_profiles.js index 043bd1e5..d4874b8e 100644 --- a/static/js/src/app/sending_profiles.js +++ b/static/js/src/app/sending_profiles.js @@ -307,7 +307,7 @@ $(document).ready(function () { dismissSendTestEmailModal() }) // Code to deal with custom email headers - $("#headersForm").on('submit', function () { + $("#addCustomHeader").on('click', function () { headerKey = $("#headerKey").val(); headerValue = $("#headerValue").val(); @@ -316,7 +316,8 @@ $(document).ready(function () { } addCustomHeader(headerKey, headerValue); // Reset user input. - $("#headersForm>div>input").val(''); + $("#headerKey").val(''); + $("#headerValue").val(''); $("#headerKey").focus(); return false; }); diff --git a/templates/sending_profiles.html b/templates/sending_profiles.html index 97f9f37f..0959f830 100644 --- a/templates/sending_profiles.html +++ b/templates/sending_profiles.html @@ -44,27 +44,29 @@