mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-03 08:41:39 +09:00
Display error count in debug panel for ajax requests
This commit is contained in:
parent
4497b68366
commit
3b2fa4208d
2 changed files with 11 additions and 0 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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));
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue