diff options
author | Unknown <joe2010xtmf@163.com> | 2014-05-14 10:55:41 -0400 |
---|---|---|
committer | Unknown <joe2010xtmf@163.com> | 2014-05-14 10:55:41 -0400 |
commit | e880a2fa48e1b5d9fc850a507cd7dcc605e47458 (patch) | |
tree | b5c6d0b00e7f15a53a0ce2c799786206822453d6 /public/js | |
parent | 46fc36c3a63b5501ca154df885ae5446ebb66220 (diff) | |
parent | a1bb3741d5806e11da528078cde90998c8aebb05 (diff) |
Merge branch 'dev' of github.com:gogits/gogs into dev
Diffstat (limited to 'public/js')
-rw-r--r-- | public/js/app.js | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/public/js/app.js b/public/js/app.js index d7ef2250..d7514f79 100644 --- a/public/js/app.js +++ b/public/js/app.js @@ -571,7 +571,7 @@ function initIssue() { // milestone - $('.issue-bar .dropdown-menu a[data-toggle="tab"]').on("click", function (e) { + $('#issue .dropdown-menu a[data-toggle="tab"]').on("click", function (e) { e.stopPropagation(); $(this).tab('show'); return false; @@ -580,6 +580,7 @@ function initIssue() { var $m = $('.milestone'); if ($m.data("milestone") > 0) { $('.clear-milestone').toggleShow(); + console.log("show"); } $('.milestone', '#issue').on('click', 'li.milestone-item', function () { var id = $(this).data("id"); @@ -600,8 +601,16 @@ function initIssue() { } }) } + return; + } + $('#milestone-id').val(id); + if (id > 0) { + $('.clear-milestone').toggleShow(); + $('#milestone').text($(this).find("strong").text()) + } else { + $('.clear-milestone').toggleHide(); + $('#milestone').text($('#milestone').data("no-milestone")); } - return; }); } |