mirror of
https://github.com/healthchecks/healthchecks.git
synced 2025-03-14 20:32:51 +00:00
15 lines
No EOL
440 B
JavaScript
15 lines
No EOL
440 B
JavaScript
$(function() {
|
|
$("#method-down").change(function() {
|
|
var method = this.value;
|
|
$("#body-down-group").toggle(method != "GET");
|
|
});
|
|
|
|
$("#method-up").change(function() {
|
|
var method = this.value;
|
|
$("#body-up-group").toggle(method != "GET");
|
|
});
|
|
|
|
// On page load, check if we need to show "request body" fields
|
|
$("#method-down").trigger("change");
|
|
$("#method-up").trigger("change");
|
|
}); |