diff --git a/public/javascripts/dragreg.js b/public/javascripts/dragreg.js index 9d3984f..f049b5b 100644 --- a/public/javascripts/dragreg.js +++ b/public/javascripts/dragreg.js @@ -14,7 +14,8 @@ $(document).ready(function() { $.each(data, function(key, val) { $.get("draggables/" + key, function(data) { $("#draggables").append(data); - $(".draggable").draggable({ stack: "#draggables img", + $(".draggable").draggable({ stack: ".draggable", + containment: "window", stop: update_drag_info }); // FIXME: highlight text for now, until we can determine and // store what everything exactly is.