Skip to content

Commit

Permalink
Removed excess auto-baking when an operation is added to the recipe. F…
Browse files Browse the repository at this point in the history
…ixes #120.
  • Loading branch information
n1474335 committed Apr 26, 2017
1 parent 7e7da26 commit 39f36c9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/web/RecipeWaiter.js
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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)
});

Expand Down

0 comments on commit 39f36c9

Please sign in to comment.