mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-22 15:56:16 -04:00
Disappearing Popover Fix
This commit is contained in:
parent
3cf7238106
commit
e709582062
1 changed files with 11 additions and 6 deletions
|
@ -124,16 +124,21 @@ class RecipeWaiter {
|
||||||
* @param {event} evt
|
* @param {event} evt
|
||||||
*/
|
*/
|
||||||
opSortEnd(evt) {
|
opSortEnd(evt) {
|
||||||
if (this.removeIntent) {
|
if (this.removeIntent && evt.item.parentNode.id === "rec-list") {
|
||||||
if (evt.item.parentNode.id === "rec-list") {
|
evt.item.remove();
|
||||||
evt.item.remove();
|
|
||||||
}
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Reinitialise the popover on the original element in the ops list because for some reason it
|
// Reinitialise the popover on the original element in the ops list because for some reason it
|
||||||
// gets destroyed and recreated.
|
// gets destroyed and recreated. If the clone isn't in the ops list, we use the original item instead.
|
||||||
this.manager.ops.enableOpsListPopovers(evt.clone);
|
let enableOpsElement;
|
||||||
|
if (evt.clone.parentNode && evt.clone.parentNode.classList.contains("op-list")) {
|
||||||
|
enableOpsElement = evt.clone;
|
||||||
|
} else {
|
||||||
|
enableOpsElement = evt.item;
|
||||||
|
$(evt.item).attr("data-toggle", "popover");
|
||||||
|
}
|
||||||
|
this.manager.ops.enableOpsListPopovers(enableOpsElement);
|
||||||
|
|
||||||
if (evt.item.parentNode.id !== "rec-list") {
|
if (evt.item.parentNode.id !== "rec-list") {
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue