#214: updated regexp in JS for removing branch
This commit is contained in:
parent
78a33727a6
commit
dfb867541c
|
@ -59,7 +59,7 @@ RosaABF.controller('ProjectRefsController', ['$scope', '$http', 'ApiProject', fu
|
||||||
$scope.updateBranchesCount();
|
$scope.updateBranchesCount();
|
||||||
// Removes branch from "Current branch/tag:" select box
|
// Removes branch from "Current branch/tag:" select box
|
||||||
$('#branch_selector option').filter(function() {
|
$('#branch_selector option').filter(function() {
|
||||||
return this.value.match('.*\/branches\/' + branch.ref + '.*');
|
return this.value.match('.*\/branches\/' + branch.ref + '$');
|
||||||
}).remove();
|
}).remove();
|
||||||
}, function () { // on error
|
}, function () { // on error
|
||||||
$scope.getRefs();
|
$scope.getRefs();
|
||||||
|
|
Loading…
Reference in New Issue