+% # it would be better if we had draggable-specific droppables, but this will prevent overlap for now...
+ function can_drop ($where, cells) {
+ for (var c=0; c < cells; c++) {
+ if (!$where.is('.ui-droppable')) {
+ return false;
+ }
+ var rownum = $where.parent().prevAll('tr').length;
+ var colnum = $where.prevAll('td').length;
+ $where = $where.parent().parent().children('tr').eq(rownum+1).children('td').eq(colnum);
+ }
+ return true;
+ }
+