mirror of
https://github.com/gchq/CyberChef
synced 2025-12-05 23:53:27 +00:00
Removed excess auto-baking when an operation is added to the recipe. Fixes #120.
This commit is contained in:
@@ -26,7 +26,6 @@ var RecipeWaiter = function(app, manager) {
|
||||
RecipeWaiter.prototype.initialiseOperationDragNDrop = function() {
|
||||
var recList = document.getElementById("rec-list");
|
||||
|
||||
|
||||
// Recipe list
|
||||
Sortable.create(recList, {
|
||||
group: "recipe",
|
||||
@@ -45,7 +44,9 @@ RecipeWaiter.prototype.initialiseOperationDragNDrop = function() {
|
||||
}
|
||||
}.bind(this),
|
||||
onSort: function(evt) {
|
||||
document.dispatchEvent(this.manager.statechange);
|
||||
if (evt.from.id === "rec-list") {
|
||||
document.dispatchEvent(this.manager.statechange);
|
||||
}
|
||||
}.bind(this)
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user