This commit is contained in:
tidusjar 2016-06-01 18:32:52 +01:00
commit 9ffe184dd3
11 changed files with 67 additions and 56 deletions

View file

@ -39,7 +39,7 @@
<ul class="nav navbar-nav">
@Html.GetNavbarUrl(Context, "/search", "Search", "search")
@Html.GetNavbarUrl(Context, "/requests", "Requests", "plus-circle")
@Html.GetNavbarUrl(Context, "/issues", "Issues", "exclamation", "<span id=\"issueCount\" class=\"badge\">0</span>")
@Html.GetNavbarUrl(Context, "/issues", "Issues", "exclamation", "<span id=\"issueCount\"></span>")
</ul>
<ul class="nav navbar-nav navbar-right">
@ -133,7 +133,9 @@
dataType: "json",
success: function (response) {
if (response) {
$('#issueCount').html(response);
if(response > 0)
$('#issueCount').addClass("badge");
$('#issueCount').html(+response);
}
},
error: function (e) {