From a7d803c7bc23f7b7f2effbe00065ef13ebe66c1f Mon Sep 17 00:00:00 2001 From: Raincole Date: Tue, 14 Jun 2011 08:19:05 +0800 Subject: [PATCH] Fix the sticker bug --- client/script.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/client/script.js b/client/script.js index 82e841c..cc56773 100644 --- a/client/script.js +++ b/client/script.js @@ -192,7 +192,7 @@ function drawNewCard(id, text, x, y, rot, colour, sticker, animationspeed) sendAction('moveCard', data); }); - card.droppable( + card.children(".content").droppable( { accept: '.sticker', drop: function( event, ui ) { @@ -202,7 +202,6 @@ function drawNewCard(id, text, x, y, rot, colour, sticker, animationspeed) addSticker( cardId, stickerId ); var data = { cardId: cardId, stickerId: stickerId }; - sendAction('addSticker', data); } }