1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-12-23 09:43:11 +00:00

Remove 'None yet' message when adding first label to issue.

This commit is contained in:
Justin Nuß 2014-07-25 20:15:58 +02:00
parent aad91d4b21
commit a03a1e87e9

View file

@ -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");