mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-27 12:53:57 +01:00
fix dropdown close bug
This commit is contained in:
parent
7b9d4d126a
commit
c9e830cefb
2 changed files with 2 additions and 2 deletions
|
@ -98,7 +98,7 @@ var Gogits = {
|
||||||
};
|
};
|
||||||
// fix dropdown inside click
|
// fix dropdown inside click
|
||||||
Gogits.initDropDown = function(){
|
Gogits.initDropDown = function(){
|
||||||
$('.dropdown-menu').on('click','a,button,input,select',function(e){
|
$('.dropdown-menu.no-propagation').on('click',function(e){
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
|
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
|
||||||
<span class="caret"></span>
|
<span class="caret"></span>
|
||||||
</button>
|
</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">
|
<div class="input-group">
|
||||||
<span class="input-group-btn">
|
<span class="input-group-btn">
|
||||||
<button class="btn btn-default" data-link="{{.CloneLink.SSH}}" type="button">SSH</button>
|
<button class="btn btn-default" data-link="{{.CloneLink.SSH}}" type="button">SSH</button>
|
||||||
|
|
Loading…
Reference in a new issue