From a03a1e87e9f8e8cf98670aa1a64dd91da8e04bd3 Mon Sep 17 00:00:00 2001 From: Justin Nuß Date: Fri, 25 Jul 2014 20:15:58 +0200 Subject: Remove 'None yet' message when adding first label to issue. --- public/js/app.js | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'public') 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("

None yet

"); + } } else { $(item).prepend(''); $(item).removeClass("no-checked"); $(item).addClass("checked"); + + $("p:not([class])", $labels).remove(); var $l = $("

"); var c = $("span.color", item).css("background-color"); -- cgit v1.2.3