#214: updated regexp in JS for removing branch

This commit is contained in:
Vokhmin Alexey V 2013-07-19 21:14:42 +04:00
parent 78a33727a6
commit dfb867541c
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ RosaABF.controller('ProjectRefsController', ['$scope', '$http', 'ApiProject', fu
$scope.updateBranchesCount();
// Removes branch from "Current branch/tag:" select box
$('#branch_selector option').filter(function() {
return this.value.match('.*\/branches\/' + branch.ref + '.*');
return this.value.match('.*\/branches\/' + branch.ref + '$');
}).remove();
}, function () { // on error
$scope.getRefs();