mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-06 18:21: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
|
|
@ -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