diff options
author | 无闻 <joe2010xtmf@163.com> | 2014-07-25 20:58:31 -0400 |
---|---|---|
committer | 无闻 <joe2010xtmf@163.com> | 2014-07-25 20:58:31 -0400 |
commit | 0a739cf9ac901f54484c34bba8322418dedb09b0 (patch) | |
tree | e28d265513de7d2dca65cf73d8a091d9ce9ac74a /public/js | |
parent | 3e23241f58695e569a0c0d91100e349cf71043aa (diff) | |
parent | a03a1e87e9f8e8cf98670aa1a64dd91da8e04bd3 (diff) | |
download | gitea-0a739cf9ac901f54484c34bba8322418dedb09b0.tar.gz gitea-0a739cf9ac901f54484c34bba8322418dedb09b0.zip |
Merge pull request #325 from nuss-justin/dev
Remove 'None yet' message when adding first label to issue.
Diffstat (limited to 'public/js')
-rw-r--r-- | public/js/app.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/public/js/app.js b/public/js/app.js index ef54aaf811..eb3eb6b5a7 100644 --- a/public/js/app.js +++ b/public/js/app.js @@ -984,11 +984,17 @@ function initIssue() { $(item).addClass("no-checked"); $("#label-" + id, $labels).remove(); + + if ($labels.children(".label-item").length == 0) { + $labels.append("<p>None yet</p>"); + } } else { $(item).prepend('<span class="check pull-left"><i class="fa fa-check"></i></span>'); $(item).removeClass("no-checked"); $(item).addClass("checked"); + + $("p:not([class])", $labels).remove(); var $l = $("<p></p>"); var c = $("span.color", item).css("background-color"); |