Fix delete branch confirmation message

This commit is contained in:
Naoki Takezoe
2015-07-03 21:19:14 +09:00
parent 3218bddbdc
commit 10ffb452d0

View File

@@ -75,7 +75,7 @@
<script> <script>
$(function(){ $(function(){
$('.delete-branch').click(function(e){ $('.delete-branch').click(function(e){
var branchName = $(e.target).data('name'); var branchName = $(e.target).closest('a').data('name');
return confirm('Are you sure you want to remove the ' + branchName + ' branch?'); return confirm('Are you sure you want to remove the ' + branchName + ' branch?');
}); });
$('*[data-toggle=tooltip]').tooltip().css("white-space","nowrap"); $('*[data-toggle=tooltip]').tooltip().css("white-space","nowrap");