diff --git a/src/web/RecipeWaiter.js b/src/web/RecipeWaiter.js index 8aeb938e..a985c2e4 100755 --- a/src/web/RecipeWaiter.js +++ b/src/web/RecipeWaiter.js @@ -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) });