From 3b2fa4208d93ebddc1093785e2877b5e4303829e Mon Sep 17 00:00:00 2001 From: Kijin Sung Date: Wed, 13 Aug 2025 21:31:17 +0900 Subject: [PATCH] Display error count in debug panel for ajax requests --- common/css/rhymix.scss | 10 ++++++++++ common/js/debug.js | 1 + 2 files changed, 11 insertions(+) diff --git a/common/css/rhymix.scss b/common/css/rhymix.scss index 91c3e140d..c51f43522 100644 --- a/common/css/rhymix.scss +++ b/common/css/rhymix.scss @@ -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 { diff --git a/common/js/debug.js b/common/js/debug.js index 86ab6f548..3e8f8069d 100644 --- a/common/js/debug.js +++ b/common/js/debug.js @@ -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($('').text(data.errors.length)); } };