summaryrefslogtreecommitdiffstats
path: root/public
diff options
context:
space:
mode:
authorSimon <simon@hilchenba.ch>2019-05-05 20:09:02 +0200
committertechknowlogick <hello@techknowlogick.com>2019-05-05 14:09:02 -0400
commita2a006a5d5a542c5c31bdce4647d2401eab88475 (patch)
treea71588a2291a5a5d2f9419208990fa5207593b77 /public
parent55a8e12d85bd59314416bb026e84d258004a5071 (diff)
downloadgitea-a2a006a5d5a542c5c31bdce4647d2401eab88475.tar.gz
gitea-a2a006a5d5a542c5c31bdce4647d2401eab88475.zip
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
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);