cppcheck-htmlreport: Added clear button inside 'File' and 'Filter' text box (#5805)

This is a cosmetic change. When the user enters text to either the
"File" or "Filter" option, a clear button is shown now.
This commit is contained in:
orbitcowboy 2023-12-23 19:32:13 +01:00 committed by GitHub
parent 17ee4093fa
commit 06e6c3eba4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -408,8 +408,8 @@ def filter_bar(enabled):
,'\n | ' ,'\n | '
,''.join([filter_button(enabled, tool, 'toggleTool') for tool in ['cppcheck', 'clang-tidy']]) ,''.join([filter_button(enabled, tool, 'toggleTool') for tool in ['cppcheck', 'clang-tidy']])
,'\n | ' ,'\n | '
,'\n <label class="severityHeader">File: <input type="text" oninput="filterFile(this.value)"/></label>' ,'\n <label class="severityHeader">File: <input type="search" oninput="filterFile(this.value)"/></label>'
,'\n <label class="severityHeader">Filter: <input type="text" oninput="filterText(this.value)"/></label>' ,'\n <label class="severityHeader">Filter: <input type="search" oninput="filterText(this.value)"/></label>'
,'\n </div>\n']) ,'\n </div>\n'])
def git_blame(errors, path, file, blame_options): def git_blame(errors, path, file, blame_options):