Fix a missing ctype from test hook

This commit is contained in:
Mitsuhiro Koga
2016-05-18 02:14:08 +09:00
parent 0789010248
commit 89c69cdfc2

View File

@@ -146,7 +146,7 @@ $(function(){
$("#test-modal-url").text(url)
$("#test-report-modal").modal('show')
$("#test-report").hide();
var targetUrl = '@url(repository)/settings/hooks/test?url=' + encodeURIComponent(url) + '&token=';
var targetUrl = '@url(repository)/settings/hooks/test?url=' + encodeURIComponent(url) + '&ctype=' + ctype + '&token=';
if (token) {
targetUrl = targetUrl + encodeURIComponent(token);
}