1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-24 11:18:36 +00:00

new create webhook event

This commit is contained in:
Unknwon
2015-08-28 23:36:13 +08:00
parent a541ca16b6
commit f509c59ac1
16 changed files with 449 additions and 306 deletions

File diff suppressed because one or more lines are too long

View File

@@ -367,6 +367,23 @@ function initRepository() {
}
};
function initWebhook() {
if ($('.new.webhook').length == 0) {
return;
}
$('.events.checkbox input').change(function () {
if ($(this).is(':checked')) {
$('.events.fields').show();
}
});
$('.non-events.checkbox input').change(function () {
if ($(this).is(':checked')) {
$('.events.fields').hide();
}
});
}
$(document).ready(function () {
csrf = $('meta[name=_csrf]').attr("content");
@@ -473,4 +490,5 @@ $(document).ready(function () {
initCommentForm();
initInstall();
initRepository();
initWebhook();
});

View File

@@ -76,4 +76,12 @@
margin-left: 25px;
}
}
}
.new.webhook {
.events.fields {
.column {
padding-left: 40px;
}
}
}