Browse Source

fix dropdown close bug

pull/33/head
FuXiaoHei 11 years ago
parent
commit
c9e830cefb
  1. 2
      public/js/app.js
  2. 2
      templates/repo/nav.tmpl

2
public/js/app.js

@ -98,7 +98,7 @@ var Gogits = {
};
// fix dropdown inside click
Gogits.initDropDown = function(){
$('.dropdown-menu').on('click','a,button,input,select',function(e){
$('.dropdown-menu.no-propagation').on('click',function(e){
e.stopPropagation();
});
};

2
templates/repo/nav.tmpl

@ -18,7 +18,7 @@
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
<span class="caret"></span>
</button>
<div class="dropdown-menu clone-group-btn dropdown-menu-right">
<div class="dropdown-menu clone-group-btn dropdown-menu-right no-propagation">
<div class="input-group">
<span class="input-group-btn">
<button class="btn btn-default" data-link="{{.CloneLink.SSH}}" type="button">SSH</button>

Loading…
Cancel
Save