mirror of
https://github.com/gchq/CyberChef.git
synced 2025-05-11 16:51:31 -04:00
remove listItemUpdate related classes into c-operation-list and simplify code, as duplicates in the operation lists are now no longer an issue in the context of this. Add a custom events to dispatch on change of favourites
This commit is contained in:
parent
6a11d14794
commit
4dc4645def
6 changed files with 59 additions and 85 deletions
|
@ -434,9 +434,8 @@ class App {
|
|||
|
||||
this.buildFavouritesCategory(isExpanded);
|
||||
|
||||
// update all op-lists to reflect the current recipe list ( selected ops ) and favourite category list ( favourite ops )
|
||||
this.manager.ops.updateListItemsClasses("#rec-list", "selected");
|
||||
this.manager.ops.updateListItemsClasses("#catFavourites > c-operation-list > ul.op-list", "favourite");
|
||||
window.dispatchEvent(this.manager.favouritesupdate);
|
||||
|
||||
this.manager.recipe.initDragAndDrop();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue