summaryrefslogtreecommitdiffstats
path: root/public
diff options
context:
space:
mode:
Diffstat (limited to 'public')
-rw-r--r--public/js/index.js9
1 files changed, 9 insertions, 0 deletions
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);