Removed excess auto-baking when an operation is added to the recipe. Fixes #120.

This commit is contained in:
n1474335 2017-04-26 11:05:44 +00:00
parent 7e7da26f29
commit 39f36c9184
1 changed files with 3 additions and 2 deletions

View File

@ -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)
});