diff --git a/pagure/templates/repo_info.html b/pagure/templates/repo_info.html
index 3cf2c9c..86efe0b 100644
--- a/pagure/templates/repo_info.html
+++ b/pagure/templates/repo_info.html
@@ -327,7 +327,7 @@ $(function() {
commit not in the main branch. Click to create new PR now.'+'"> New PR \
';
{%endif%}
- $('#branch-'+branch+' .branch_del').prepend(html2);
+ $('#branch-' + branch.replace('.', '\\.') + ' .branch_del').prepend(html2);
$('[data-toggle="tooltip"]').tooltip({placement : 'bottom'});
}
for (branch in res.message.branch_w_pr){
@@ -345,7 +345,7 @@ $(function() {
+ 'PR#' + res.message.branch_w_pr[branch] + ' \
';
console.log(html);
- $('#branch-' + branch + ' .branch_del').prepend(html);
+ $('#branch-' + branch.replace('.', '\\.') + ' .branch_del').prepend(html);
$('[data-toggle="tooltip"]').tooltip({placement : 'bottom'});
}
}