mirror of
https://github.com/gchq/CyberChef.git
synced 2025-05-07 06:57:12 -04:00
fix selector, remove some unused code
This commit is contained in:
parent
a3fa46eb09
commit
0830ece0fb
1 changed files with 1 additions and 16 deletions
|
@ -7,8 +7,6 @@
|
|||
import HTMLOperation from "../HTMLOperation.mjs";
|
||||
import Sortable from "sortablejs";
|
||||
import {fuzzyMatch, calcMatchRanges} from "../../core/lib/FuzzyMatch.mjs";
|
||||
import {COperationLi} from "../components/c-operation-li.mjs";
|
||||
import {CCategoryList} from "../components/c-category-list.mjs";
|
||||
import {COperationList} from "../components/c-operation-list.mjs";
|
||||
|
||||
/**
|
||||
|
@ -226,19 +224,6 @@ class OperationsWaiter {
|
|||
});
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Handler for operation doubleclick events.
|
||||
* Adds the operation to the recipe and auto bakes.
|
||||
*
|
||||
* @param {Event} e
|
||||
*/
|
||||
operationDblclick(e) {
|
||||
const li = e.target;
|
||||
this.manager.recipe.addOperation(li.getAttribute("data-name"));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Handler for edit favourites click events.
|
||||
* Sets up the 'Edit favourites' pane and displays it.
|
||||
|
@ -370,7 +355,7 @@ class OperationsWaiter {
|
|||
* @param {string} className - the className to update
|
||||
*/
|
||||
updateListItemsClasses(srcListSelector, className) {
|
||||
const listItems = document.querySelectorAll(`${srcListSelector} > li`);
|
||||
const listItems = document.querySelectorAll(`${srcListSelector} li`);
|
||||
const ops = document.querySelectorAll("#categories c-operation-li > li.operation");
|
||||
|
||||
this.removeClassFromOps(className);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue