Skip to content

Commit 0a739cf

Browse files
committed
Merge pull request #325 from nuss-justin/dev
Remove 'None yet' message when adding first label to issue.
2 parents 3e23241 + a03a1e8 commit 0a739cf

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

public/js/app.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -984,11 +984,17 @@ function initIssue() {
984984
$(item).addClass("no-checked");
985985

986986
$("#label-" + id, $labels).remove();
987+
988+
if ($labels.children(".label-item").length == 0) {
989+
$labels.append("<p>None yet</p>");
990+
}
987991
} else {
988992
$(item).prepend('<span class="check pull-left"><i class="fa fa-check"></i></span>');
989993

990994
$(item).removeClass("no-checked");
991995
$(item).addClass("checked");
996+
997+
$("p:not([class])", $labels).remove();
992998

993999
var $l = $("<p></p>");
9941000
var c = $("span.color", item).css("background-color");

0 commit comments

Comments
 (0)