When executing [Transfer Ownership] and [Garbage collection], display the confirmation dialog like [Delete repository]
1 parent 7965408 commit 4aa90c05014c6860cffe4af9cc47c3eac71fb6cf
@Hisakazu Nishiyama Hisakazu Nishiyama authored on 17 Sep 2018
Showing 1 changed file
View
10
src/main/twirl/gitbucket/core/settings/danger.scala.html
$(function(){
$('#delete-form').submit(function(){
return confirm('Once you delete a repository, there is no going back.\nAre you sure?');
});
$('#transfer-form').submit(function(){
if($('#transfer-form').data('validated') === true){
return confirm('Transfer to the repository owner you entered.\nAre you sure?');
} else {
return true;
}
});
$('#gc-form').submit(function(){
return confirm('The garbage collection may take a long time.\nDo you want to execute it?');
});
});
</script>