Modify id of "Test Hook" button
1 parent bcd9291 commit d15b3fb2f6d2928fb9eb4e400815864d114bb990
@Naoki Takezoe Naoki Takezoe authored on 2 Dec 2017
Showing 1 changed file
View
4
src/main/twirl/gitbucket/core/settings/edithookform.scala.html
} else {
<input type="text" value="@webHook.url" class="form-control" style="display: inline; width: 500px; vertical-align: middle;" disabled />
<input type="hidden" value="@webHook.url" name="url" />
}
<button class="btn btn-default" id="test">Test Hook</button>
<button class="btn btn-default" id="test-hook">Test Hook</button>
</fieldset>
<fieldset class="form-group">
<label class="strong">Content type</label>
<div></div>
$('#test-report-tab a').click(function (e) {
e.preventDefault();
$(this).tab('show');
});
$('#test').click(function(e){
$('#test-hook').click(function(e){
e.stopPropagation();
e.stopImmediatePropagation();
e.preventDefault();
var url = this.form.url.value;