mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-21 23:36:16 -04:00
Merge branch 'stacking-fix' of https://github.com/cbeuw/CyberChef into cbeuw-stacking-fix
This commit is contained in:
commit
ea090f79ee
1 changed files with 0 additions and 15 deletions
|
@ -51,7 +51,6 @@ class RecipeWaiter {
|
||||||
}
|
}
|
||||||
}.bind(this),
|
}.bind(this),
|
||||||
onSort: function(evt) {
|
onSort: function(evt) {
|
||||||
this.updateZIndices();
|
|
||||||
if (evt.from.id === "rec-list") {
|
if (evt.from.id === "rec-list") {
|
||||||
document.dispatchEvent(this.manager.statechange);
|
document.dispatchEvent(this.manager.statechange);
|
||||||
}
|
}
|
||||||
|
@ -150,19 +149,6 @@ class RecipeWaiter {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Sets the z-index property on each operation to make sure that operations higher in the list
|
|
||||||
* have a higher index, meaning dropdowns are not hidden underneath subsequent operations.
|
|
||||||
*/
|
|
||||||
updateZIndices() {
|
|
||||||
const operations = document.getElementById("rec-list").children;
|
|
||||||
for (let i = 0; i < operations.length; i++) {
|
|
||||||
const operation = operations[i];
|
|
||||||
operation.style.zIndex = 100 + operations.length - i;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Handler for favourite dragover events.
|
* Handler for favourite dragover events.
|
||||||
* If the element being dragged is an operation, displays a visual cue so that the user knows it can
|
* If the element being dragged is an operation, displays a visual cue so that the user knows it can
|
||||||
|
@ -480,7 +466,6 @@ class RecipeWaiter {
|
||||||
log.debug(`'${e.target.querySelector(".op-title").textContent}' added to recipe`);
|
log.debug(`'${e.target.querySelector(".op-title").textContent}' added to recipe`);
|
||||||
|
|
||||||
this.triggerArgEvents(e.target);
|
this.triggerArgEvents(e.target);
|
||||||
this.updateZIndices();
|
|
||||||
window.dispatchEvent(this.manager.statechange);
|
window.dispatchEvent(this.manager.statechange);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue