Display error count in debug panel for ajax requests

This commit is contained in:
Kijin Sung 2025-08-13 21:31:17 +09:00
parent 4497b68366
commit 3b2fa4208d
2 changed files with 11 additions and 0 deletions

View file

@ -294,6 +294,16 @@ a img {
font-weight: bold;
margin: 0;
padding: 0;
.error_count {
display: inline-block;
margin-left: 6px;
border-radius: 4px;
padding: 2px 6px;
font-size: 12px;
line-height: 12px;
background: #f44336;
color: #ffffff;
}
}
}
.debug_page_collapse {

View file

@ -234,6 +234,7 @@ $(function() {
// If there are errors, turn the button text red.
if (data.errors && data.errors.length) {
button_link.addClass("has_errors");
page_header.find('h3').append($('<span class="error_count"></span>').text(data.errors.length));
}
};