Fix the sticker bug
This commit is contained in:
parent
f3bb4d73bf
commit
a7d803c7bc
1 changed files with 1 additions and 2 deletions
|
@ -192,7 +192,7 @@ function drawNewCard(id, text, x, y, rot, colour, sticker, animationspeed)
|
||||||
sendAction('moveCard', data);
|
sendAction('moveCard', data);
|
||||||
});
|
});
|
||||||
|
|
||||||
card.droppable(
|
card.children(".content").droppable(
|
||||||
{
|
{
|
||||||
accept: '.sticker',
|
accept: '.sticker',
|
||||||
drop: function( event, ui ) {
|
drop: function( event, ui ) {
|
||||||
|
@ -202,7 +202,6 @@ function drawNewCard(id, text, x, y, rot, colour, sticker, animationspeed)
|
||||||
addSticker( cardId, stickerId );
|
addSticker( cardId, stickerId );
|
||||||
|
|
||||||
var data = { cardId: cardId, stickerId: stickerId };
|
var data = { cardId: cardId, stickerId: stickerId };
|
||||||
|
|
||||||
sendAction('addSticker', data);
|
sendAction('addSticker', data);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue