From 599d33cc4e7c04007750fcf7604d2916e98c0ddc Mon Sep 17 00:00:00 2001 From: ali asaria Date: Sun, 8 Dec 2013 09:18:41 -0500 Subject: [PATCH] not sure what this is for --- client/script.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/client/script.js b/client/script.js index 277198e..2ec5e2d 100644 --- a/client/script.js +++ b/client/script.js @@ -212,7 +212,12 @@ function drawNewCard(id, text, x, y, rot, colour, sticker, animationspeed) var data = { cardId: cardId, stickerId: stickerId }; sendAction('addSticker', data); - } + + //remove hover state to everything on the board to prevent + //a jquery bug where it gets left around + $('.card-hover-draggable').removeClass('card-hover-draggable'); + }, + hoverClass: 'card-hover-draggable' } );