only allow stickers to drop onto cards. fixes #13

This commit is contained in:
Ali Asaria 2011-05-29 14:42:26 -04:00
parent 414d10ca25
commit 481171bfec

View file

@ -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');