diff options
author | Justin Nuß <nuss.justin@gmail.com> | 2014-07-25 20:15:58 +0200 |
---|---|---|
committer | Justin Nuß <nuss.justin@gmail.com> | 2014-07-25 20:15:58 +0200 |
commit | a03a1e87e9f8e8cf98670aa1a64dd91da8e04bd3 (patch) | |
tree | ae4fc34a90a3b1c782932f38bba473f5827b2a89 /public/js | |
parent | aad91d4b21b2aae438162e10f698e81abb4e63ee (diff) | |
download | gitea-a03a1e87e9f8e8cf98670aa1a64dd91da8e04bd3.tar.gz gitea-a03a1e87e9f8e8cf98670aa1a64dd91da8e04bd3.zip |
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 d7208119b3..6f4676f624 100644 --- a/public/js/app.js +++ b/public/js/app.js @@ -926,11 +926,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"); |