summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFuXiaoHei <fuxiaohei@hexiaz.com>2014-03-23 17:36:12 +0800
committerFuXiaoHei <fuxiaohei@hexiaz.com>2014-03-23 17:36:12 +0800
commitc9e830cefb3b19593e7de05c785efdd93a0982d6 (patch)
tree5acbd2d0c0d7d2b62137d56a9f10ed346eb03959
parent7b9d4d126a3d3b12a0a0d10e8ccaa945e3f17eda (diff)
downloadgitea-c9e830cefb3b19593e7de05c785efdd93a0982d6.tar.gz
gitea-c9e830cefb3b19593e7de05c785efdd93a0982d6.zip
fix dropdown close bug
-rw-r--r--public/js/app.js2
-rw-r--r--templates/repo/nav.tmpl2
2 files changed, 2 insertions, 2 deletions
diff --git a/public/js/app.js b/public/js/app.js
index df755727b5..e0f92854f4 100644
--- a/public/js/app.js
+++ b/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();
});
};
diff --git a/templates/repo/nav.tmpl b/templates/repo/nav.tmpl
index cf1b7d0389..4d939e2504 100644
--- a/templates/repo/nav.tmpl
+++ b/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>