mirror of
https://github.com/gchq/CyberChef.git
synced 2025-05-08 15:25:01 -04:00
[#181] fix search result data-name issues ( purging html only for data-name attribute, update op-list checkmarks accordingly )
This commit is contained in:
parent
bc93969d4b
commit
c6cc998100
4 changed files with 7 additions and 6 deletions
|
@ -108,6 +108,7 @@ class OperationsWaiter {
|
|||
searchResultsEl.innerHTML = matchedOpsHtml;
|
||||
searchResultsEl.dispatchEvent(this.manager.oplistcreate);
|
||||
}
|
||||
this.manager.recipe.updateSelectedOperations();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -139,6 +140,7 @@ class OperationsWaiter {
|
|||
|
||||
if (nameMatch || descPos >= 0) {
|
||||
const operation = new HTMLOperation(opName, this.app.operations[opName], this.app, this.manager);
|
||||
|
||||
if (highlight) {
|
||||
operation.highlightSearchStrings(calcMatchRanges(idxs), [[descPos, inStr.length]]);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue