From f938e66614a6e3147991f4377f3cbace4d8049b0 Mon Sep 17 00:00:00 2001 From: Paul van Tilburg Date: Fri, 13 Jan 2012 10:43:08 +0100 Subject: [PATCH] Fix stacking of things that are not an image --- public/javascripts/dragreg.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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.