only allow stickers to drop onto cards. fixes #13
This commit is contained in:
parent
414d10ca25
commit
481171bfec
1 changed files with 1 additions and 1 deletions
|
@ -167,7 +167,7 @@ function drawNewCard(id, text, x, y, rot, colour, sticker)
|
||||||
|
|
||||||
$( ".droppable" ).droppable(
|
$( ".droppable" ).droppable(
|
||||||
{
|
{
|
||||||
xaccept: '.sticker',
|
accept: '.sticker',
|
||||||
drop: function( event, ui ) {
|
drop: function( event, ui ) {
|
||||||
var stickerId = ui.draggable.attr("id");
|
var stickerId = ui.draggable.attr("id");
|
||||||
var cardId = $(this).parent().attr('id');
|
var cardId = $(this).parent().attr('id');
|
||||||
|
|
Loading…
Add table
Reference in a new issue