From a2a006a5d5a542c5c31bdce4647d2401eab88475 Mon Sep 17 00:00:00 2001 From: Simon Date: Sun, 5 May 2019 20:09:02 +0200 Subject: Add GET requests to webhook (#6771) * Add GET requests to webhook * make fmt * Handle invalid http method on webhook * Uppercase http method in webhook * Rename v85.go to v86.go * make fmt --- public/js/index.js | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'public/js') diff --git a/public/js/index.js b/public/js/index.js index 062ed7ce4d..9a9052eba7 100644 --- a/public/js/index.js +++ b/public/js/index.js @@ -1430,6 +1430,15 @@ function initWebhook() { } }); + var updateContentType = function () { + var visible = $('#http_method').val() === 'POST'; + $('#content_type').parent().parent()[visible ? 'show' : 'hide'](); + }; + updateContentType(); + $('#http_method').change(function () { + updateContentType(); + }); + // Test delivery $('#test-delivery').click(function () { var $this = $(this); -- cgit v1.2.3