summaryrefslogtreecommitdiffstats
path: root/public/js
diff options
context:
space:
mode:
authorJustin Nuß <nuss.justin@gmail.com>2014-07-25 20:15:58 +0200
committerJustin Nuß <nuss.justin@gmail.com>2014-07-25 20:15:58 +0200
commita03a1e87e9f8e8cf98670aa1a64dd91da8e04bd3 (patch)
treeae4fc34a90a3b1c782932f38bba473f5827b2a89 /public/js
parentaad91d4b21b2aae438162e10f698e81abb4e63ee (diff)
downloadgitea-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.js6
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");