From 481171bfec2e69d6bf167a7881443c374fab41a1 Mon Sep 17 00:00:00 2001 From: Ali Asaria Date: Sun, 29 May 2011 14:42:26 -0400 Subject: [PATCH] only allow stickers to drop onto cards. fixes #13 --- client/script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/script.js b/client/script.js index 6ec5c1d..95fdd80 100644 --- a/client/script.js +++ b/client/script.js @@ -167,7 +167,7 @@ function drawNewCard(id, text, x, y, rot, colour, sticker) $( ".droppable" ).droppable( { - xaccept: '.sticker', + accept: '.sticker', drop: function( event, ui ) { var stickerId = ui.draggable.attr("id"); var cardId = $(this).parent().attr('id');